plotForecast: Forecasting new covid cases

View source: R/plotForecast.R

plotForecastR Documentation

Forecasting new covid cases

Description

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

Usage

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

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

RcmdrPlugin.RiskDemo documentation built on Nov. 13, 2023, 5:07 p.m.