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

Large Refactor to Clean Up FixestMulti class #601

Merged
merged 21 commits into from
Sep 15, 2024
Merged

Conversation

s3alfisc
Copy link
Member

@s3alfisc s3alfisc commented Sep 1, 2024

Clean up the FixestMulti class to allow incorporation of compression strategy without producing a completely messy code base.

  • Rework Feols
  • Rework Feiv
  • Rework Fepois
  • Fix linter & type checks

In more detail, the model_matrix() step is moved from FixestMulti to the estimation subclasses. They no longer accept matrix inputs but have an API close to the one of feols() - one has to provide a Formula object, a pd.DataFrame, and other function arguments and no longer numpy arrays.

The changes in the PR also make the add_context() method superfluous.

@s3alfisc s3alfisc marked this pull request as draft September 1, 2024 12:15
@Jayhyung Jayhyung mentioned this pull request Sep 1, 2024
@s3alfisc s3alfisc marked this pull request as ready for review September 10, 2024 18:26
@s3alfisc
Copy link
Member Author

s3alfisc commented Sep 10, 2024

@pre-commit.ci autofix

@s3alfisc s3alfisc merged commit b8a88c8 into master Sep 15, 2024
8 checks passed
@s3alfisc s3alfisc deleted the refactor-model-matrix branch September 15, 2024 13:58
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

Successfully merging this pull request may close these issues.

1 participant