# Prediction using dynlm/dyn [closed]

I was wondering if anyone could help me to carry out prediction using a dynlm model. I seem to have trouble as there are two lagged components within the model. The model I've fitted is:

library(dynlm)
mod <- dynlm(x ~ 0 + trend + seasonal1 + seasonal2 + lag(x,-1) + lag(x,-2))


where x is a known time series of 100 values and seasonal1/seasonal2 are monthly/weekly seasonal components respectively. Trend is a linear trend component here given simply by:

trend <- 1:100

-

## closed as off topic by Andy W, gung, Macro, steffen, mbq♦Oct 15 '12 at 12:09

Questions on Cross Validated are expected to relate to statistics within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.