Displaying 1 result from an estimated 1 matches for "allgva".
Did you mean:
alla
2010 May 06
1
question about rolling regressions
Hi All,
I am using R 2.11.0 on a Ubuntu machine. I have a time series data set and
want to run rolling regressions with it. Any suggestions would be useful.
Here are the details:
(1) I convert relevant variables into time series objects and compute first
differences:
vad <- ts(data$ALLGVA/data$GDPDEF, start=1948, frequency=1)
emp <- ts(data$ALLEMP, start=1948, frequency=1)
vad.dif1 <- diff(vad)
emp.dif1 <- diff(emp)
(2) I make a data set:
d <-
ts.union(emp.chng=emp.dif1,lag.emp.chng=lag(emp.dif1,-1),twolag.emp.chng=lag(emp.dif1,-2),
vad.chng=vad.dif1,lag.vad.chng=lag(...