Skip to content

Commit

Permalink
estimate overdispersion in hospital_admissions_model.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
damonbayer committed Jul 15, 2024
1 parent 5e6bcc7 commit 673bab2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/source/tutorials/hospital_admissions_model.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ rtproc = process.RtRandomWalkProcess(
)
# The observation model
obs = observation.NegativeBinomialObservation(concentration_prior=1.0)
obs = observation.NegativeBinomialObservation(
"negbinom_rv",
metaclass.DistributionalRV(
dist.TransformedDistribution(
dist.HalfNormal(), transformation.PowerTransform(-2)
),
"concentration",
),
)
```

Notice all the components are `RandomVariable` instances. We can now build the model:
Expand Down

0 comments on commit 673bab2

Please sign in to comment.