Learn R Programming

srp (version 1.2.0)

ncs: The natural cubic spline interpolation

Description

This function performs the natural cubic spline interpolation of a design matrix.

Usage

ncs(x)

Arguments

x

The design matrix.

Value

cf0

The coefficient matrix for B-splines obtained by natural cubic spline interpolation of x.

Details

Usually only called by srp.c and srp.l.

See Also

srp.c, srp.l

Examples

Run this code
# NOT RUN {
x <- matrix(rnorm(100), ncol=10)
ncs(x)$cf0
# }

Run the code above in your browser using DataLab