I want to make the following case of linear regression in R
year<-rep(2008:2010,each=4) quarter<-rep(1:4,3) cpi<-c(162.2,164.6,166.5,166.0,166.4,167
cpi<-c(162.2,164.6,166.5,166.0,166.4,167.0,168.6,169.5,170.0,172.0,173.3,174.0) cpits <- ts(cpi, start=2008, frequency=4) plot(decompose(cpits))