modifiedPegelsfcastC: Modified version of pegelsfcast.C

View source: R/modifiedPegelsfcastC.R

modifiedPegelsfcastCR Documentation

Modified version of pegelsfcast.C

Description

This function, originally called pegelsfcast.C from the forecast package, implements the work in Forecasting: Principles and Practice by Rob J Hyndman and George Athanasopoulos (https://otexts.com/fpp2/)

Usage

modifiedPegelsfcastC(pdays, obj, nsim, level, bootstrap)

Arguments

pdays

How far in the future to forecast

obj

A mode object hard-coded to the Holt model

nsim

Number of simulations

level

Quantile of distribution. Not utilized but maintained for consistency

bootstrap

Whether to resample errors (TRUE) or use Gaussian errors (FALSE)

Value

A list with the following components:

mu is the mean path

lower is the lower quantile

upper is the upper quantile

y_paths is a matrix of paths


olshena/COVIDNearTerm documentation built on May 27, 2023, 1:23 p.m.