Learn R Programming

forecastHybrid (version 4.2.17)

forecast.thetam: Forecast using a Theta model

Description

Returns forecasts and other information for univariate Theta "models"

Usage

# S3 method for 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

See Also

thetam

Examples

Run this code
# NOT RUN {
mod1 <- thetam(Nile)
fc1 <- forecast(mod1)
plot(fc1)
# }

Run the code above in your browser using DataLab