Skip to content

Update phi parameterisation #487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 25, 2023
Prev Previous commit
Next Next commit
Update inst/stan/functions/observation_model.stan
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
  • Loading branch information
seabbs and sbfnk authored Oct 24, 2023
commit 66808b82ef6408393a03bf78b8669980ad0436e7
2 changes: 1 addition & 1 deletion inst/stan/functions/observation_model.stan
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ array[] int report_rng(vector reports, array[] real rep_phi, int model_type) {
array[t] int sampled_reports;
real dispersion = 1e5;
if (model_type) {
sqrt_phi = 1 / pow(rep_phi[model_type], 2);
dispersion = 1 / pow(rep_phi[model_type], 2);
}

for (s in 1:t) {
Expand Down