powered by
Gu builds the basis matrix and penalty matrix to approximate a smooth function using natural cubic splines based on the Gu basis form.
Gu
Gu(t, knot)
nknot number of knots.
knots set of knots.
N basis matrix.
K penalty matrix.
the covariate.
a integer value that represent the number of knots of the natural cubic spline.
Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>
Wood, S. (2006) Generalized additive models: An R introduction. Chapman and Hall.
Carlos Alberto Cardozo Delgado. Semi-parametric generalized log-gamma regression models. Ph. D. thesis. Sao Paulo University.
t <- runif(1000) knot <- 6 N_gu <- Gu(t,knot)
Run the code above in your browser using DataLab