Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot asymmetric effects #48

Open
athammad opened this issue Jul 28, 2022 · 1 comment
Open

Plot asymmetric effects #48

athammad opened this issue Jul 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@athammad
Copy link

athammad commented Jul 28, 2022

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)
@jacob-long
Copy link
Owner

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

@jacob-long jacob-long added the enhancement New feature or request label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants