Skip to content
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

Prepend sample dataset GI PMF with a zero #70

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

* Drop old typos that snuck through the WORDLIST setup (#73)
* Turn off credential caching in WORDLIST update action preventing CI from restarting (#74)
* Prepend missing zero to the start of the GI PMF for the sample dataset

## Developer tooling

Expand Down
3 changes: 2 additions & 1 deletion data-raw/sir_gt_pmf.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ sir_gt_pmf <- primarycensored::dpcens(0:26,
) # v0.4.0

# Drop first element because GI can't have same-day transmission
sir_gt_pmf <- sir_gt_pmf[2:27]
# and replace with a zero
sir_gt_pmf <- c(0, sir_gt_pmf[2:27])

# Renormalize to a proper PMF
while (abs(sum(sir_gt_pmf) - 1) > 1e-10) {
Expand Down
Binary file modified data/sir_gt_pmf.rda
Binary file not shown.