panelr icon indicating copy to clipboard operation
panelr copied to clipboard

Plot asymmetric effects

Open athammad opened this issue 3 years ago • 1 comments

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)

athammad avatar Jul 28 '22 05:07 athammad

Thanks for the suggestion, Ahmed, I'd like to implement this when/if possible.

jacob-long avatar Jan 12 '23 13:01 jacob-long