R: Crafting Building Blocks for Polynomial Splines

mkfun.poly {gss} | R Documentation

## 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)

### 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.

### Value

A list of two elements.

`fun` | Function definition.
`env` | Portable local constants derived from the argument.

### Note

`mkrk.x` create a bivariate function `fun(x,y,env,outer=FALSE)`, where `x`, `y` are real arguments and local constants can be passed in through `env`.

`mkphi.cubic` creates a univariate function `fun(x,nu,env)`.

### References

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

### See Also

`mkterm`, `mkfun.tp`, and `mkrk.nominal`.

[Package gss version 2.2-2 Index]