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

[Error] terms.formula(fml_linear) : invalid model formula in ExtractVars #317

Closed
vivek-kandimalla opened this issue Jun 2, 2022 · 3 comments

Comments

@vivek-kandimalla
Copy link

vivek-kandimalla commented Jun 2, 2022

I am running a linear fixed effects model.

feols(log(J_Itm12) ~ J_Itm6 + exp + imp + I(exp*imp) + Distance_KM + I(J_Itm6^2) + I(Distance_KM^2) | Port_Nearest + J_Itm3, data = x,cluster=c("J_Itm3","Port_Nearest"),fsplit = ~ Dist_Class)

Error in feols(log(J_Itm12) ~ J_Itm6 + exp + imp + I(exp * imp) + Distance_KM + :
Error in terms.formula(fml_linear) : invalid model formula in ExtractVars
This error was unforeseen by the author of the function feols. If you think your call to the function is legitimate, could you report?

@lrberge
Copy link
Owner

lrberge commented Jun 2, 2022

What happened since last week (mentioned in the initial issue)?
Could you provide a minimal reproducible example (see #33)?

@vivek-kandimalla
Copy link
Author

vivek-kandimalla commented Jun 2, 2022

Some variables are missing. But the error message got me confused.

@lrberge
Copy link
Owner

lrberge commented Jun 2, 2022

Indeed. If you're able to create a MRE I'd be happy to correct.

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