Skip to content

Commit

Permalink
Merge branch 'v0.8.2'
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	zepid/version.py
  • Loading branch information
pzivich committed Jul 12, 2020
2 parents 0cf189e + 1d0076c commit 4854a4a
Show file tree
Hide file tree
Showing 20 changed files with 1,398 additions and 249 deletions.
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ language: python
python:
- "3.5"
- "3.6"

matrix:
include:
- python: 3.7
dist: xenial
sudo: true
- "3.7"

notifications:
email: false

before_install:
- "pip install -U pip"
- "python setup.py install"

install:
- pip install -r travis-requirements.txt
- python setup.py install

script:
- pytest
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
## Change logs

### v0.8.2
`IPSW` and `AIPSW` now natively support adjusting for confounding. Both now have the `treatment_model()` function,
which calculates the inverse probability of treatment weights. How weights are handled in `AIPSW` are updated. They
are used in both the weight and the outcome models.

`IPSW` and `AIPSW` both add censoring...

`TimeFixedGFormula` has added support for the average treatment effect in the treated (ATT), and average treatment
effect in the untreated (ATU).

Improved warnings when the treatment/exposure variable is not included in models that it should be in (such as the
outcome model or in structural nested models).

Background refactoring for IPTW. `utils.py` now contains a function to calculate inverse probability of treatment
weights. The function `iptw_calculator` is used by `IPTW`, `AIPTW`, `IPSW`, and `AIPSW` to calculate the weights now

### v0.8.1
Added support for `pygam`'s `LogisticGAM` for TMLE with custom models (Thanks darrenreger!)

Expand Down
1 change: 1 addition & 0 deletions docs/Reference/Causal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Targeted Maximum Likelihood Estimator
:toctree: generated/

TMLE
StochasticTMLE

G-estimation of SNM
-------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
zepid.causal.doublyrobust.TMLE.StochastsicTMLE
==============================================

.. currentmodule:: zepid.causal.doublyrobust.StochasticTMLE

.. autoclass:: StochasticTMLE
:members:

.. rubric:: Methods

.. autosummary::

~TMLE.exposure_model
~TMLE.outcome_model
~TMLE.fit
~TMLE.summary
~TMLE.run_diagnostics
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ zepid.causal.generalize.estimators.AIPSW

.. autosummary::

~AIPSW.weight_model
~AIPSW.sampling_model
~AIPSW.treatment_model
~AIPSW.outcome_model
~AIPSW.fit
~AIPSW.summary
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ zepid.causal.generalize.estimators.IPSW

.. autosummary::

~IPSW.regression_models
~IPSW.sampling_model
~IPSW.treatment_model
~IPSW.fit
~IPSW.summary
Loading

0 comments on commit 4854a4a

Please sign in to comment.