Description Usage Arguments Value
View source: R/data_processing.R
Make auto-regressive (AR) samples for extrapolation past end point to help with right-censoring problems.
1 2 3 4 5 6 7 8 | make_ar_extrap_samps(
reported,
num_ar_steps = 10,
num_ar_samps = 50,
seed = 1,
linear_tail = 14,
extrapolation_prior_precision = 2
)
|
reported |
An integer vector of reported cases. |
num_ar_steps |
An integer number of AR steps after last observation. |
num_ar_samps |
An integer number of AR samples. |
seed |
Seed for RNG. |
linear_tail |
An integer number of days used to fit linear model on tail to be used as a mean for AR extrapolation. |
extrapolation_prior_precision |
A positive scalar for extrapolation slope shrinkage prior precision. |
A matrix of size (num_ar_samps x n + num_ar_steps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.