Skip to content

Commit

Permalink
Crv numba (#217)
Browse files Browse the repository at this point in the history
* PyFixest 0.10.7: Basic Did2s support (#194)

* initial commit

* reproduce did2s.r results

* add twfe estimator

* create treatment var internally

* some defensive input checks

* acknowledge kyle as copyright holder

* create experimental folder

* update docs

* update version

* add did2s function

* get event_study() did2s to work again

* delete did2s function

* add basic tests

* patch version

* delete pyaches

* update news

* update starting message

* update readme

* update pyproject.toml

* ci tests on mac as fixest already compiled

* test on windows

* back to testing on linux

* first install python, then R deps

* fix yaml syntax

* yaml is too hard

* fix typo

* PyFixest 0.10.8: More flexible DID2s support (#206)

* initial commit

* reproduce did2s.r results

* add twfe estimator

* create treatment var internally

* some defensive input checks

* acknowledge kyle as copyright holder

* create experimental folder

* update docs

* update version

* add did2s function

* get event_study() did2s to work again

* delete did2s function

* add basic tests

* patch version

* delete pyaches

* update news

* update starting message

* update readme

* update pyproject.toml

* ci tests on mac as fixest already compiled

* test on windows

* back to testing on linux

* first install python, then R deps

* fix yaml syntax

* yaml is too hard

* some work towards a more flexible API

* get did2s function prototype to run

* event_study() and did2s() both run through

* add examples to did2s() and event_study()

* more tests for did2s

* pass tests

* two reference levels

* fix small bug re _drop_ref

* get did2s() to run

* fix did2s vcov bug

* add tests

* update did example

* further updates

* update i-tests

* bump version and update readme

* readme tweaks

* update news

* update readme

* update readme

* dont gitignore figures folder

* PyFixest 0.8.10.1: add black workflow (#207)

* add black action

* run black

* revert notebook

* PyFixest 0.10.8.2: close #208 (#209)

* check for did2s if treatment is boolean

* update docs

* ci only when push to master

* bump version

* small fixes

* formatting

* PyFixest 0.10.9: Improve etable() (#210)

* first step to prettier etable

* add tabulate dependency, fix etable fixef bug

* fix bug with no fixed effects

* fix no model has fixef exception

* bump poetry version

* fix hline placement bug

* formatting

* make plot nicer

* add vcov info

* reformat

* reformat

* update news

* PyFixest 0.10.10  (#212)

* attempt to fix #211

* cleanup

* clarification

* fix i() bug for i(var), not for i(var1, var2)

* add drop_intercept argument to feols, fepois

* fix error with did2s inference

* add error when 0 or -1 in first stage

* fix tests, output warning for i(var1, var2) syntax

* format code

* update figure + fix small bug

* no 0 in second stage did test

* bump version

* deprecate i(var1, var2) syntax, update news

* format

* bring back i(var1, var2)

* format

* fix i(var1, var2) interaction - unit tests pass

* formatting

* bump version

* Fix poisson bug (#215)

* update docs

* add _depvar attribute to Feols object

* use _depvar attribute

* move separation checks out of Fepois to fix #138

* revert changes to performance method

* temporarily do not report r squared metrics

* fix separation bug  #138

* formatting

* update docs

* njit and parallelize crv1 inference #204

* formatting

* bump version
  • Loading branch information
s3alfisc authored Nov 18, 2023
1 parent 1b66b7a commit 6d81a19
Show file tree
Hide file tree
Showing 36 changed files with 51,759 additions and 1,306 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
24 changes: 11 additions & 13 deletions .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
Expand All @@ -24,16 +21,6 @@ jobs:
- name: Checkout source
uses: actions/checkout@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.0'

- name: install fixest and broom for testing
run: Rscript -e 'install.packages(c("fixest", "broom"), repos="https://cloud.r-project.org")'
shell: bash


- name: Setup python
uses: actions/setup-python@v2
with:
Expand All @@ -44,9 +31,20 @@ jobs:
run: |
pip install -e .
pip install -r requirements_test_ci.txt
- name: set numba parallel flags
run: |
echo "NUMBA_NUM_THREADS=1" >> $GITHUB_ENV
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.0'

- name: install fixest and broom for testing
run: Rscript -e 'install.packages(c("fixest", "broom", "did2s"), repos="https://cloud.r-project.org")'
shell: bash

- name: Run tests
run: pytest tests/test_errors.py tests/test_formulas.py tests/test_plots.py tests/test_poisson.py tests/test_predict_resid_fixef.py tests/test_ses.py tests/test_ssc.py tests/test_vs_fixest.py
- name: Upload coverage reports to Codecov
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ dist
.vscode
*.pyc
__pycache__/
docs/figures
docs/news_files
readme_files
*.Rdata
*.csv
Loading

0 comments on commit 6d81a19

Please sign in to comment.