Skip to content

Commit a58f671

Browse files
committed
update with ben's comments
Signed-off-by: Nathaniel <[email protected]>
1 parent 6160a3f commit a58f671

File tree

4 files changed

+1102
-4081
lines changed

4 files changed

+1102
-4081
lines changed

causalpy/pymc_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,9 @@ class initialisation.
634634
splines_summed = pm.Deterministic(
635635
"spline_features", pm.math.dot(B_f, beta_ps_spline.T)
636636
)
637-
mu_outcome = mu_outcome + splines_summed
637+
mu_outcome = (
638+
alpha_outcome + pm.math.dot(X_data_outcome, beta) + splines_summed
639+
)
638640

639641
sigma = pm.HalfNormal("sigma", priors["sigma"])
640642

docs/source/knowledgebase/glossary.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Glossary
6969
Propensity scores
7070
An estimate of the probability of adopting a treatment status. Used in re-weighting schemes to balance observational data.
7171

72+
Potential outcomes
73+
A potential outcome is definable for a candidate or experimental unit under a treatment regime with respect to a measured outcome. The outcome Y(0) for that experimental unit is the outcome when the individual does not have the treatment. The outcome Y(1) for that experimental unit is the outcome when the individual does receive the treatment. Only one case can be observed in reality, and this is called the fundamental problem of causal inference. Seen this way causal inference becomes a kind of imputation problem.
74+
7275
Quasi-experiment
7376
An empirical comparison used to estimate the effects of a treatment where units are not assigned to conditions at random.
7477

0 commit comments

Comments
 (0)