Description Usage Arguments Value
Expands the observed truth across a range of bins
1 2 3 | expand_truth(truth, week_expand = 1, percent_expand = 5, week53 = F,
challenge = "ilinet", expand_by_percent = F,
percent_observed = 0.1)
|
truth |
A data.frame including columns unit and bin_start_incl |
week_expand |
A scalar numeric (default 1) indicating the number of bins to include around the observed value for week targets. |
percent_expand |
A scalar numeric (default 5) indicating the number
of bins to include around the observed value for percent or rate targets.
If |
week53 |
A logical value (default 'FALSE') indicating whether to include MMWR week 53 in the expanded truth. |
challenge |
one of "ilinet", "hospital" or "state_ili", indicating
which challenge the submission is for (default |
expand_by_percent |
A logical value (default 'FALSE') indicating whether to expand truth around percent or ratetargets by a percentage of the observed value. |
percent_observed |
A scalar numeric between 0 and 1 (default 0.1),
indicating the one-sided percentage of the observed percent or rate target
that will be included. If |
A data.frame with expanded truth
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.