Skip to content

Commit 98cca2f

Browse files
committed
fix observed keyword for student liklihood
Signed-off-by: Nathaniel <[email protected]>
1 parent 0c806b8 commit 98cca2f

File tree

2 files changed

+564
-752
lines changed

2 files changed

+564
-752
lines changed

causalpy/pymc_models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,9 @@ class initialisation.
642642
_ = pm.Normal("like", mu_outcome, sigma, observed=Y_data_)
643643
else:
644644
nu = pm.Exponential("nu", lam=1 / 10)
645-
_ = pm.StudentT("like", nu=nu, mu=mu_outcome, sigma=sigma)
645+
_ = pm.StudentT(
646+
"like", nu=nu, mu=mu_outcome, sigma=sigma, observed=Y_data_
647+
)
646648

647649
idata_outcome = pm.sample_prior_predictive(random_seed=random_seed)
648650
idata_outcome.extend(pm.sample(**self.sample_kwargs))

0 commit comments

Comments
 (0)