Learn R Programming

gss (version 2.2-8)

mkfun.poly: Crafting Building Blocks for Polynomial Splines

Description

Craft numerical functions to be used by mkterm to assemble model terms.

Usage

mkrk.cubic(range)
mkphi.cubic(range)
mkrk.trig(range)
mkphi.trig(range)
mkrk.cubic.per(range)
mkrk.linear(range)
mkrk.linear.per(range)

Value

A list of two elements.

fun

Function definition.

env

Portable local constants derived from the argument.

Arguments

range

Numerical vector whose minimum and maximum specify the range on which the function to be crafted is defined.

Details

mkrk.cubic, mkphi.cubic, and mkrk.linear implement the polynomial spline construction in Gu (2002, Sec. 2.3.3) for \(m=2,1\).

mkrk.cubic.per and mkrk.linear.per implement the periodic polynomial spline construction in Gu (2002, Sec. 4.2.1) for \(m=2,1\).

References

Gu, C. (2013), Smoothing Spline ANOVA Models (2nd Ed). New York: Springer-Verlag.

See Also

mkterm, mkfun.tp, and mkrk.nominal.