In: Statistics and Probability
Part (A): Using R to show how to decompose the seasonal time series data and then subtract that effect from the data.
This assignment is to practice using R to learn how to decompose seasonal time series data. Please use the data set in “A Little of R for Time Series” Section 2.4 (p.20):
• > births <-scan("http://robjhyndman.com/tsdldata/data/nybirths.dat")
> birthstimeseries <- ts(births, frequency=12, start=c(1946,1))
> birthstimeseries
• Then you can use the following to show how you can decompose the time series and then subtract the seasonal effect from the data:
• Use decompose() function for displaying decomposing seasonal time series as well as seasonally adjusting to subtract the seasonal components from the time series and give some insights to it.