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

waldtest using interaction terms #34

Open
raholler opened this issue Sep 23, 2020 · 1 comment
Open

waldtest using interaction terms #34

raholler opened this issue Sep 23, 2020 · 1 comment

Comments

@raholler
Copy link

I tried to perform a waldtest using the results of an estimation with interaction terms using felm.

e.g.

form <- y ~ x + x:z | 0 | 0| 0
fit <- felm(form, data)
waldtest(fit, ~ x + x:z)

Returns: Can't find : among coefficients ...

How am I supposed to specify interaction terms in waldtest?
using waldtest(

@BenjaminKay
Copy link

The problem is with the colon in the name but I found a workaround. You simply rename the variables in the model results.
So, in your example:

form <- y ~ x + x:z | 0 | 0| 0
fit <- felm(form, data)
row.names(fit $coefficients) = c("x", "x_X_z")
waldtest(fit, ~ x + x_X_z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants