
What does the function lines() do?
What does the function scatter.smooth() do?
Basic Models
What would a log transformation to to the multiplicative model?
In R
decompose( )
Or
stl()
library(astsa)
plot(jj, type="o", ylab="Quarterly
Earnings per Share")
library(astsa)
plot(log(jj), type="o", ylab="Quarterly
Earnings per Share")
x <- ts(rnorm(50))
plot(x)
Using the Additive Model. Not so good!
plot(decompose(jj, "additive"))
Using the Multiplicative Model. This is better!
plot(decompose(jj, "multiplicative"))
Note: If we take the log() of the time series the heteroskedasticity is removed.
plot(decompose(log(jj),"additive"))