Skip to content

Commit b48b82c

Browse files
committed
adding datasets
Signed-off-by: Nathaniel <[email protected]>
1 parent e88e4c0 commit b48b82c

File tree

3 files changed

+697
-660
lines changed

3 files changed

+697
-660
lines changed

causalpy/data/datasets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"nhefs": {"filename": "nhefs.csv"},
3939
"schoolReturns": {"filename": "schoolingReturns.csv"},
4040
"pisa18": {"filename": "PISA18sampleScale.csv"},
41+
"nets": {"filename": "nets_df.csv"},
42+
"lalonde": {"filename": "lalonde.csv"},
4143
}
4244

4345

causalpy/pymc_models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,12 @@ def fit_outcome_model(
581581
-----
582582
- This model uses a sampled version of the propensity score (`p`) from the
583583
posterior of the treatment model, randomly selecting one posterior draw
584-
per call.
584+
per call. This term is estimated initially in the InversePropensity
585+
class initialisation.
585586
- The term `beta_ps[0] * p + beta_ps[1] * (p * treatment)` captures both
586587
main and interaction effects of the propensity score.
587588
- Including spline adjustment enables modeling nonlinear relationships
588589
between the propensity score and the outcome.
589-
- Compatible with IPW-style estimation when combined with weighted loss or
590-
diagnostics outside this function.
591590
592591
"""
593592
if not hasattr(self, "idata"):

0 commit comments

Comments
 (0)