flag: Calculation of lagged covariates

Description Usage Arguments Value Examples

View source: R/flag.R

Description

Calculation of lagged covariates

Usage

1
flag(x,n,lag)

Arguments

x

The covariates

n

The sample size

lag

The maximum lag

Value

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.

Examples

1
2
3
data(abcq)
abcql<-flag(abcq,240,16)
a<-f1st(abcql[[1]],abcql[[2]])

gausscov documentation built on Jan. 17, 2022, 9:06 a.m.

Related to flag in gausscov...