Learn R Programming

RGAP (version 0.1.1)

trendOptim: Find suitable trend specification

Description

Finds the most suitable trend model according to the BIC.

Usage

trendOptim(x, opt = c("RW1", "RW2", "DT"))

Value

A character string with the chosen trend model.

Arguments

x

A time series.

opt

A character vector with the trend models to be tested. The default is opt = c("RW1", "RW2", "DT").