data_processing {incidental} | R Documentation |
Data processing wrapper
Description
Does basic checks for reported data and delay distribution, front pads, and makes AR extrapolation.
Usage
data_processing(
reported,
delay_dist,
num_ar_steps = 10,
num_ar_samps = 100,
seed = 1,
linear_tail = 14,
front_pad_size = 10,
extrapolation_prior_precision = 2
)
Arguments
reported |
An integer vector of reported cases. |
delay_dist |
A positive vector that sums to one, which describes the delay distribution. |
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. |
front_pad_size |
An integer for initial number of 0's before first observation. |
extrapolation_prior_precision |
A positive scalar for extrapolation slope shrinkage prior precision. |
Value
A list with elements:
extrap = a matrix of size (num_ar_samps x n + num_ar_steps + front_pad_size)
original = a vector of logicals for whether in original time series range
[Package incidental version 0.1 Index]