Learn R Programming

gausscov (version 0.1.1)

flag: Calculation of lagged covariates

Description

Calculation of lagged covariates

Usage

flag(x,n,lag)

Arguments

x

The covariates

n

Sample size

lag

Themaximum lag

Value

y The first covariate without a lag, the dependent covariate.

xl The covaraites with lags from 1 :lag starting with the first covariate.

Examples

Run this code
# NOT RUN {
data(abcq)
abcql<-flag(abcq,240,16)
a<-f1st(abcql[[1]],abcql[[2]])
# }

Run the code above in your browser using DataLab