Gu {sglg}R Documentation

Tool to build the basis matrix and the penalty matrix of natural cubic splines.

Description

Gu builds the basis matrix and penalty matrix to approximate a smooth function using natural cubic splines based on the Gu basis form.

Usage

Gu(t, knot)

Arguments

t

the covariate.

knot

a integer value that represent the number of knots of the natural cubic spline.

Value

nknot number of knots.

knots set of knots.

N basis matrix.

K penalty matrix.

Author(s)

Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>

References

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.

Examples

t <- runif(1000)
knot <- 6
N_gu <- Gu(t,knot)

[Package sglg version 0.2.2 Index]