Skip to content

Commit 3ce8fdd

Browse files
committed
add readme add blanklines
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
1 parent e49b005 commit 3ce8fdd

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ Instrumental Variable regression is an appropriate technique when you wish to es
188188

189189
![](https://raw.githubusercontent.com/pymc-labs/CausalPy/main/docs/source/_static/iv_reg1.png)
190190

191+
192+
### Inverse Propensity Score Weighting
193+
194+
Propensity scores are often used to address the risks of bias or confounding introduced in an observational study by
195+
selection effects into the treatment condition. Propensity scores can be used in a number of ways, but here we demonstrate
196+
their usage within corrective weighting schemes aimed to recover as-if random allocation of subjects to the treatment condition.
197+
The technique "up-weights" or "down-weights" individual observations to better estimate a causal estimand such as the average treatment
198+
effect.
199+
200+
![](https://raw.githubusercontent.com/pymc-labs/CausalPy/main/docs/source/_static/propensity_weight.png)
201+
191202
## Learning resources
192203

193204
Here are some general resources about causal inference:

causalpy/pymc_experiments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,8 @@ class InversePropensityWeighting(ExperimentalDesign, PropensityDataValidator):
15681568
... },
15691569
... ),
15701570
... )
1571+
<BLANKLINE>
1572+
<BLANKLINE>
15711573
"""
15721574

15731575
def __init__(

causalpy/pymc_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ class PropensityScore(ModelBuilder):
425425
... 'obs_indx': np.arange(df.shape[0])
426426
... },
427427
... )
428+
<BLANKLINE>
429+
<BLANKLINE>
428430
Inference...
429431
""" # noqa: W605
430432

0 commit comments

Comments
 (0)