flag: Calculation of lagged covariates

View source: R/flag.R

flagR Documentation

Calculation of lagged covariates

Description

Calculation of lagged covariates

Usage

flag(x,n,i,lag)

Arguments

x

The covariates

n

The sample size

i

The dependent variable

lag

The maximum lag

Value

y The ith covariate of x without a lag, the dependent varaible.

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

Examples

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

gausscov documentation built on Oct. 12, 2023, 1:06 a.m.

Related to flag in gausscov...