plotForecast {RcmdrPlugin.RiskDemo} | R 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 |
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
Examples
data(dataCovidFin)
plotForecast(data=dataCovidFin, region='All regions', start="2020-09-01")
[Package RcmdrPlugin.RiskDemo version 3.2 Index]