-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issue when including continuous covariate in PyTwoWay #57
Comments
Hi Jakob, Thank you for using PyTwoWay and for reaching out! The issue you reference is with the preconditioner, not the solver. The solver is actually iterative, so it doesn't check if the matrix is full rank. I'm planning to add an option to check if the matrix is full rank over the summer. I recommend trying out the different preconditioner options to find one that works. You should specify The preconditioner options are:
The default is In addition, you can always try out different solvers to see which is the fastest. In case you want to avoid preconditioners entirely, setting Please let me know if this doesn't resolve your issue, and also please feel free to reach out again if you have any more questions or issues with the code! Best, |
Thank you for your response! I tried to use solver “‘amg”, but I received this error: However, this object is not found as “pyamg.multilevel.coarse_grid_solver..GenericSolver”. I’m very sorry to bother, but I am just not sure which pickle is missing. Do you have an idea what causes this issue? Best, Jakob |
Hi Jakob, That sounds like an issue with multiprocessing. I think there are two good solutions. First, you could install the multiprocess package so that it uses dill instead of pickle. Alternatively, you can run the code with Please let me know if this resolves the issue! Best, |
Hello,
Thank you for developing this package! I’m encountering an issue when running pytwoway while including a continuous covariate. My goal is to get the KSS unbiased estimator of the variance components of the AKM fixed effects. The procedure (FEControlEstimator) runs fine when I exclude the continuous covariate. However, I get the following error when I include a continuous covariate:
I can run vanilla AKM just fine with the continuous covariate in Stata, there are no multicollinearity issues as far as I know. I don’t know why there would be a singular matrix here when I run this in Python, as when I run a TWFE model in Stata with the covariate, there are no issues.
Does FEControlEstimator normally see any issues in accommodating continuous covariates?
Sincerely,
Jakob
The text was updated successfully, but these errors were encountered: