panelr
panelr copied to clipboard
Plot asymmetric effects
Dear Jacob,
First, thank you for creating this package (and jtools as well!!!). Your work is fantastic!
I am currently trying to use the effect_plot function from jtools in panelr to visualise asymmetric effects but I am struggling with the data structure and the variable naming. I am aware that effect_plot was not designed with panelr in mind but I was wandering if there could be a workaround to explore the results of asym.
Thank you very much.
Best wishes, Ahmed
library(jtools)
library(panelr)
data("teen_poverty")
# Convert to long format
teen <- long_panel(teen_poverty, begin = 1, end = 5)
model <- asym(hours ~ lag(pov) + spouse, data = teen)
summary(model)
effect_plot(model, pred = "plus__lag_pov_", interval = TRUE,
int.type = "confidence", int.width = .8,data=teen)
Thanks for the suggestion, Ahmed, I'd like to implement this when/if possible.