-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feols, Fepois, Feiv: Implement Option to use different Solver for Normal Equation #496
Comments
Good idea; I think using a solver that 'adapts' to the structure of the data would be useful. Candidates for linear
For poisson
|
Hi @saidamir, could you comment in the issue? Else I cannot "officially" assign it to you. And thanks for taking a crack at it! =) |
Commenting. |
Hi @s3alfisc still struggling to set up my local environment (I am following your onboarding instruction from Contributing section), as there are quite a few errors when I install the just and r packages. Also is there a requirements.txt file to import all required libraries? Thanks! |
I tried installing the packages locally using poetry, however there was an error in the processor compatibility. |
Hm, that's strange, can you post the error message? |
There's no Could you list all the errors you get when trying to install |
I imported libraries from using the poetry file as the requirements, however when I tried to run a jupyter notebook on my vscode, I had the errors that I didn't have numpy etc. I started imported them, however got the following error. So finally, what I did, is I started from the beginning, created a new folders, new venv and imported the libraries but didn't use the poetry file. So far it is working ok. Here is the error: |
Sounds like a pragmatic solution! Not really sure how to help with your error - my trusted LLM adviser says this:
You can install all r packages from the justfile by running set shell := ["powershell.exe", "-c"] |
Thanks. My architecture is arm64. So far, I am able to work on this package, as I created a new folder and avoided using poetry file. |
Hi I just pushed a pr for one class feols. I would like to see if it is accepted and if yes, continue working on other classes and methods on this ticket. |
Context
Currently, all fit methods solve the OLS normal equation.
E.g. for OLS, we have
pyfixest/pyfixest/estimation/feols_.py
Line 310 in d922bfc
pyfixest/pyfixest/estimation/feiv_.py
Line 145 in d922bfc
pyfixest/pyfixest/estimation/fepois_.py
Line 218 in d922bfc
It would be cool to allow users to specify different solvers, e.g.
np.linalg.lstsq
.To do
solver
toFeols
,Feiv
,Fepois
,feols()
andfepois
.normal
(the current default) and np.linalg.lstsq@apoorvalal , any other solvers you'd like to see supported?
The text was updated successfully, but these errors were encountered: