forecast.thetam: Forecast using a Theta model

Description Usage Arguments Value Author(s) See Also Examples

View source: R/theta.R

Description

Returns forecasts and other information for univariate Theta "models"

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'thetam'
forecast(
  object,
  h = ifelse(object$m > 1, 2 * object$m, 10),
  level = c(80, 95),
  fan = FALSE,
  ...
)

Arguments

object

An object of class "thetam. Usually the result of a call to link{thetam}.

h

Number of periods for forecasting

level

Confidence level for prediction intervals

fan

If TRUE, level is set to seq(51, 99, by = 3). This is suitable for fan plots.

...

Ignored

Value

An object of class forecast

Author(s)

Peter Ellis

See Also

thetam

Examples

1
2
3
mod1 <- thetam(Nile)
fc1 <- forecast(mod1)
plot(fc1)

Example output

Loading required package: forecast
Loading required package: thief

forecastHybrid documentation built on Aug. 28, 2020, 9:08 a.m.