plotForecast | R Documentation |
This function forecasts the numbers of new covid cases using a simple linear state space model.
plotForecast(data, region, start = NULL, end = NULL, np = 30, predInt = 0.95,
log = TRUE)
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 |
No value.
Arto Luoma <arto.luoma@wippies.com>
plotR
, dataCovidFin
data(dataCovidFin)
plotForecast(data=dataCovidFin, region='All regions', start="2020-09-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.