matrix-pdl: Polynomial Distributed Lags

Description Usage Arguments See Also Examples

Description

Returns a regressor matrix for polynomial distributed lags.

Usage

1
pdl(x, d = 2, q = 3, trim = FALSE)

Arguments

x

a numeric vector.

d

an integer specifying the order of the polynomial.

q

an integer specifying the number of lags to use in creating polynomial distributed lags. This must be greater than d.

trim

a logical flag; if TRUE, the missing values at the beginning of the returned matrix will be trimmed.

See Also

tslag.

Examples

1
2
## pdl -
   #                                      

fBasics documentation built on May 31, 2017, 5:06 a.m.

Search within the fBasics package
Search all R packages, documentation and source code