get_trend: Get Trend-Cycle

Description Usage Arguments Details Author(s) See Also Examples

View source: R/get_trend.R

Description

Calculate the trend-cycle based on a seasonally adjusted series obtained from a seasonal adjustment object created by the dsa function

Usage

1
get_trend(daily.object, trend_length = 93, forecast = FALSE)

Arguments

daily.object

Output from dsa

trend_length

Number of neighbouring points to use, in days

forecast

Include forecast of component

Details

If not odd the parameter trend_length is set to the next highest odd number.

Author(s)

Daniel Ollech

See Also

get_sa, get_original

Examples

1
2
3
4
set.seed(123)
x = daily_sim(n=4)$original # series with length 4 years
res <- dsa(x, cval=7, model=c(3,1,0),fourier_number = 13)
get_trend(res)

dsa documentation built on June 21, 2021, 9:07 a.m.