glp.model.matrix {crs} | R Documentation |
Produce model matrices for a generalized polynomial smooth from the model matrices for the marginal bases of the smooth.
glp.model.matrix(X)
X |
a list of model matrices for the marginal bases of a smooth |
This function computes a generalized polynomial where the orders of each term entering the polynomial may vary.
A model matrix for a generalized polynomial smooth.
Jeffrey S. Racine racinej@mcmaster.ca
Hall, P. and J.S. Racine (forthcoming), “Cross-Validated Generalized Local Polynomial Regression,” Journal of Econometrics.
X <- list(matrix(1:4,2,2),matrix(5:10,2,3))
glp.model.matrix(X)