Skip to content

Commit

Permalink
PyFixest 0.10.5: Fix IV bug #197 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3alfisc authored Oct 28, 2023
1 parent 4eaef7d commit 992865f
Show file tree
Hide file tree
Showing 37 changed files with 244 additions and 220 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
pyfixest/debug.py
pyfixest/profile.py
site
dist
dist
.mypy_cache
.pytest_cache
.vscode
*.pyc
__pycache__/
9 changes: 9 additions & 0 deletions docs/news.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# News

## PyFixest `0.10.5`

- Fixes a big in IV estimation that would trigger an error. See [here](https://github.com/s3alfisc/pyfixest/issues/197) for details. Thanks to @aeturrell for reporting!

## PyFixest `0.10.4`

- Implements a custom function to drop singleton fixed effects.
- Additional small performance improvements.

## PyFixest `0.10.3`

- Allows for white space in the multiway clustering formula.
Expand Down
437 changes: 221 additions & 216 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions pyfixest/FormulaParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ def __init__(self, fml):
covars = f"{endogvars}+{covars}"

if endogvars is not None:
if len(endogvars) > len(instruments):
if not isinstance(endogvars, list):
endogvars_list = endogvars.split("+")
if not isinstance(instruments, list):
instruments_list = instruments.split("+")
if len(endogvars_list) > len(instruments_list):
raise UnderDeterminedIVError(
"The IV system is underdetermined. Only fully determined systems are allowed. Please provide as many instruments as endogenous variables."
"The IV system is underdetermined. Please provide as many or more instruments as endogenous variables."
)
else:
pass
Expand Down
Binary file removed pyfixest/__pycache__/FixestMulti.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/FormulaParser.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/debug.cpython-310-pytest-7.3.1.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/demean.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/estimation.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/exceptions.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/feiv.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/feols.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/fepois.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/fixest.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file removed pyfixest/__pycache__/ssc_utils.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/summarize.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/utils.cpython-310.pyc
Binary file not shown.
Binary file removed pyfixest/__pycache__/visualize.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions pyfixest/summarize.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from tkinter import N
from pyfixest.feols import Feols
from pyfixest.fepois import Fepois
from pyfixest.feiv import Feiv
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.10.4"
version = "0.10.5"


description = "(Not so) experimental draft package for high dimensional fixed effect estimation. Supports OLS, IV and Poisson regression and a range of inference procedures."
Expand Down
Binary file removed tests/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed tests/__pycache__/test_vs_fixest.cpython-310.pyc
Binary file not shown.
Binary file not shown.

0 comments on commit 992865f

Please sign in to comment.