plotForecast: Forecasting new covid cases

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotForecast.R

Description

This function forecasts the numbers of new covid cases using a simple linear state space model.

Usage

1
2
plotForecast(data, region, start = NULL, end = NULL, np = 30, predInt = 0.95, 
    log = TRUE)

Arguments

data

data frame including columns Aika (character string indicating the date), Alue (character string indicating the region) and val (numeric indicating the number of new cases)

region

characters string indicating the region for which the forecast is made

start

beginning date of the observations used in the estimation of the forecasting model

end

ending date of the observations used in the estimation of the forecasting model

np

integer indicating the forecasting horizon in days

predInt

decimal indicating the probability of the forecasting interval

log

logical indicating if a log scale is used in the plot

Value

No value.

Author(s)

Arto Luoma <arto.luoma@wippies.com>

See Also

plotR, dataCovidFin

Examples

1
2
data(dataCovidFin)
plotForecast(data=dataCovidFin, region='All regions', start="2020-09-01")

RcmdrPlugin.RiskDemo documentation built on April 6, 2021, 5:06 p.m.