flag | R Documentation |
Calculation of lagged covariates
flag(x,n,i,lag)
x |
The covariates |
n |
The sample size |
i |
The dependent variable |
lag |
The maximum lag |
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.
data(abcq)
abcql<-flag(abcq,240,1,16)
a<-f1st(abcql[[1]],abcql[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.