splintr: Generate centred basis matrix

View source: R/functions.R

splintrR Documentation

Generate centred basis matrix

Description

Generate the basis matrix for a natural cubic splines with interpretable intercepts

Usage

splintr(..., centre = 0)

Arguments

...

Parameters passed to ns.

centre

The x-value at which all spline terms should be zero.

Value

A matrix of dimension length(x) by df, like ns. Attributes correspond to those of ns with an additional centre attribute for use by predict.splintr().


simisc/splintr documentation built on March 24, 2023, 5:13 p.m.