View source: R/quantile_baseline.R
predict.quantile_baseline | R Documentation |
Predict future disease incidence by resampling one-step-ahead forecasts
## S3 method for class 'quantile_baseline'
predict(
quantile_baseline,
newdata,
quantiles,
horizon,
nsim,
origin = c("obs", "loess", "median"),
n_origin = 7,
force_nonneg = FALSE
)
quantile_baseline |
a quantile_baseline fit object |
newdata |
numeric vector of length at least one with incident counts |
quantiles |
quantile levels for which to generate predictions |
horizon |
number of time steps forward to predict |
nsim |
number of samples to use for generating predictions at horizons greater than 1 |
origin |
string specifying whether to project forward from the
most recent observation ( |
n_origin |
number of data points used in a window for a LOESS fit or for calculating the median. Defaults to 7, which seems reasonable for daily data. |
force_nonneg |
boolean; if TRUE, results are forced to be non-negative |
cum_data |
numeric vector of length at least one with cumulative counts |
matrix of samples of incidence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.