Skip to content

Simulate infections #557

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 24 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correctly index infections when no delay
  • Loading branch information
sbfnk committed Feb 20, 2024
commit b3533eb3401f3d6ffc19a145276a559c04a946b7
4 changes: 3 additions & 1 deletion inst/stan/simulate_infections.stan
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ generated quantities {
to_vector(infections[i]), delay_rev_pmf, seeding_time)
);
} else {
reports[i] = to_row_vector(infections[(seeding_time + 1):t]);
reports[i] = to_row_vector(
infections[i, (seeding_time + 1):t]
);
}

// weekly reporting effect
Expand Down