powered by
Calculation of lagged covariates
flag(x,n,lag)
The covariates
The sample size
The maximum lag
y The first covariate of x without a lag, the dependent covariate.
xl The covariates with lags from 1 :lag starting with the first covariate.
# NOT RUN { data(abcq) abcql<-flag(abcq,240,16) a<-f1st(abcql[[1]],abcql[[2]]) # }
Run the code above in your browser using DataLab