take this code library(dynlm) test=dynlm(diff(log(y))~ lag(x, -1) + lag(z, -1)) fc=predict(test) fc when I run this and look at "fc", the values there only go as long as the sample (of y) goes, but it should be one further, right? since the other values are lagged. Is predict the wrong function to reach this? Thank you -- View this message in context: http://r.789695.n4.nabble.com/predict-not-complete-tp3309756p3309756.html Sent from the R help mailing list archive at Nabble.com.
Possibly Parallel Threads
- How can I find the principal components and run regression/forecasting using dynlm
- dynlm and lm: should they give same estimates?
- Out-of-sample prediction with VAR
- problem with nested loops
- dynlm question: How to predefine formula for call to dynlm(formula) call