spline.mixed | R Documentation |
Make matrices in the linear mixed models for truncated power basis splines and O'Sullivan splines
spline.mixed(z, degree = 3, Nknots = NULL, type = c("TPB", "OSS"))
z |
the predictor vector |
degree |
the degree of B-spline basis |
Nknots |
the number of knots used in B-spline basis; the default number will be used if not specified |
type |
the type of spline models: 'TPB' truncated power basis splines; 'OSS' O'Sullivan splines |
X: matrix for fixed effects; Z: matrix for random effects; Q: penalty matrix in O'Sullivan splines; B: matrix of B-spline basis functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.