bdlimbasis: Build BDLIM basis

View source: R/bdlimbasis.R

bdlimbasisR Documentation

Build BDLIM basis

Description

bdlimbasis builds the basis for thge BDLIM model using either FACE of natural cubic splines.

Usage

bdlimbasis(X, basis.opts)

Arguments

X

A n x p matrix of observations. Each row has the observations for one individual. The observations should be evenly spaced over a grid.

basis.opts

List with the entries: type = the type of basis used, either 'face' (default) or "ns" or "bs" for splines or "gam" for presmoothing the exposure with a gam following defaults from mgcv; knots = the number of knots used for method face; knot_locations = the location of internal knots for the spline basis; pve = the percent of variance explained by the PCs for method face; df = the df for ns method.

Author(s)

Ander Wilson

See Also

fpca.face, ns, bs, and gam for details on the methods called.


AnderWilson/regimes documentation built on Aug. 5, 2023, 8:30 a.m.