powered by
Calculate the trend-cycle based on a seasonally adjusted series obtained from a seasonal adjustment object created by the dsa function
get_trend(daily.object, trend_length = 93, forecast = FALSE)
Output from dsa
Number of neighbouring points to use, in days
Include forecast of component
If not odd the parameter trend_length is set to the next highest odd number.
get_sa, get_original
# NOT RUN { 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) # }
Run the code above in your browser using DataLab