Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matrix-pdl

Polynomial Distributed Lags


Description

Returns a regressor matrix for polynomial distributed lags.

Usage

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

Examples

## pdl -
   #

fBasics

Rmetrics - Markets and Basic Statistics

v3042.89.1
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb] Martin Maechler [ctb]
Initial release
2017-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.