ts_trend_season {exams.forge}R Documentation

Trend and Season Model

Description

Estimate a trend and season model from a ts_data object.

Usage

ts_trend_season(ts, trend = NULL, season = NULL)

ts_ts(ts, trend = NULL, season = NULL)

Arguments

ts

ts_data object

trend

numeric or logical: if trend is TRUE then a linear trend will be estimated, otherwise an exponential trend. If trend is numeric this is considered as trend value

season

numeric or logical

Value

Returns an extended ts_data object with the following list of elements:

Examples

ts <- ts_data(12, trend.coeff= c(sample(0:10, 1), sample(1+(1:10)/20, 1)))
ts_trend_season(ts)

[Package exams.forge version 1.0.10 Index]