Learn R Programming

dsa (version 1.0.12)

get_sa: Get Seasonally Adjusted Series

Description

Get the calendar- and seasonally adjusted series from a seasonal adjustment object created by the dsa function

Usage

get_sa(daily.object, forecast = FALSE)

Arguments

daily.object

Output from dsa

forecast

Include forecast of component

See Also

get_trend, get_original

Examples

Run this code
# 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_sa(res)
# }

Run the code above in your browser using DataLab