powered by
Calculation of lagged covariates
flag(x,n,i,lag,inr)
y The ith covariate of x without a lag, the dependent variable.
xl The covariates with lags from 1 :lag starting with the first covariate.
The covariates
The sample size
The dependent variable
The maximum lag
If true then intersect included
data(abcq) abcql<-flag(abcq,240,1,16,TRUE) a<-f1st(abcql[[1]],abcql[[2]])
Run the code above in your browser using DataLab