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

Unable to plot interaction of plm output #41

Open
soominoh1 opened this issue Nov 23, 2020 · 1 comment
Open

Unable to plot interaction of plm output #41

soominoh1 opened this issue Nov 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@soominoh1
Copy link

soominoh1 commented Nov 23, 2020

Hello. I'm trying to plot the interaction of a plm output, but it keeps giving me the following error. I've tried uninstalling and reinstalling R and the packages therein, but to no avail. Would you be so kind as to help figure out what is happening? Your help is much appreciated. Thank you!

Model run:
plm(data = data, formula = y ~ x1 + x2 + x1*x2, model = "within", index = c("grp", "year")))

Error: ~does not appear to be a one- or two-sided formula.
y does not appear to be a one- or two-sided formula.
x1 + x2 + x1 * x2 does not appear to be a one- or two-sided formula.
Backtrace:

  1. interactions::interact_plot(...)
  2. jtools::get_data(model, warn = TRUE, ...)
  3. jtools:::get_lhs(formula)
@jacob-long
Copy link
Owner

I will look into this. Generating predictions from such models can be a little more complicated than it appears and I don't want to give bad results.

@jacob-long jacob-long added the enhancement New feature or request label Apr 18, 2022
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