[R] How to account for autoregressive terms?

2008-05-22 Thread Daphne Renault
Hi, how to estimate a the following model in R: y(t)=beta0+beta1*x1(t)+beta2*x2(t)+...+beta5*x5(t)+beta6*y(t-1)+beta7*y(t-2)+beta8*y(t-3) 1) using "lm" : dates <- as.Date(data.df[,1]) selection<-which(dates>=as.Date("1986-1-1") & dates<=as.Date("2007-12-31")) dep <- ts(data.df[selection,c("dep

[R] How to extract estimates, Std. Error, t Value and Pr(>|t|) from summary

2008-05-16 Thread Daphne Renault
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Time varying regression coefficients

2007-10-11 Thread Daphne Renault
Hi, has anyone experience or an example how to setup a state space model for time varying regression coefficient estimates in R and how to get the filtered coefficient estimates. The model looks like y(t) = a(t)'*x(t)+u(t) where y(t) and x(t) are the obse