Description Usage Arguments Details Value Author(s) References See Also
Set up a basis for a constrained polynomial distributed lag model
1 |
var |
a vector with the variate to constrain on the polynomial functional |
lags |
an integer indicating the maximum lags for the basis |
degrees |
an integer indicating the degrees used for the polynomial in the distributed lag structure |
Each column of the resulting matrix but the first one will be the form W_d=Z_1+2^dZ^2+..+q^dZ_q and the first one W_0=Z_0 + Z_1+..+ Z_q, where Z_i is var
at lag i.
This function is intended to be called internally by pdlm
.
This function returns a matrix with degrees+1
columns.
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
Schwartz, J. (2000) The distributed lag between air pollution and daily deaths. Epidemiology 11(3), 320–326.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.