Skip to content

Commit

Permalink
Merge pull request #148 from s3alfisc/dev
Browse files Browse the repository at this point in the history
PyFixest 0.9.7
  • Loading branch information
s3alfisc authored Sep 18, 2023
2 parents 1c60ef4 + a1710f3 commit 85a9d05
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/news.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# News

## PyFixest `0.9.7`

Fixes a bug in `predict()` produced when multicollinear variables are dropped.

## PyFixest `0.9.6`

Improved Collinearity handling. See [#145](https://github.com/s3alfisc/pyfixest/issues/145)
Expand Down
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified pyfixest/__pycache__/feols.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion pyfixest/feols.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def fixef(self) -> None:

fml_linear = f"{depvars} ~ {covars}"
Y, X = model_matrix(fml_linear, df)
X = X.drop("Intercept", axis=1)
X = X[self._coefnames] # drop intercept, potentially multicollinear vars
Y = Y.to_numpy().flatten().astype(np.float64)
X = X.to_numpy()
uhat = csr_matrix(Y - X @ self._beta_hat).transpose()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyfixest"
version = "0.9.6"
version = "0.9.7"

description = "Experimental draft package for high dimensional fixed effect estimation. Supports OLS and IV estimation."
authors = ["Alexander Fischer <alexander-fischer1801@t-online.de>"]
Expand Down

0 comments on commit 85a9d05

Please sign in to comment.