Skip to content

Unable to plot interaction of plm output, jtools error message #97

Description

@soominoh1

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. I googled the error and there seems to be another person who has the same issue (StackOverflow post). Would you be so kind as to help figure out what is happening? Your help is much appreciated. Thank you!

Model run & error:

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:

interactions::interact_plot(...)
jtools::get_data(model, warn = TRUE, ...)
jtools:::get_lhs(formula)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions