spline.mixed: Make matrices in the linear mixed models for truncated power...

View source: R/YY.R

spline.mixedR Documentation

Make matrices in the linear mixed models for truncated power basis splines and O'Sullivan splines

Description

Make matrices in the linear mixed models for truncated power basis splines and O'Sullivan splines

Usage

spline.mixed(z, degree = 3, Nknots = NULL, type = c("TPB", "OSS"))

Arguments

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

Value

X: matrix for fixed effects; Z: matrix for random effects; Q: penalty matrix in O'Sullivan splines; B: matrix of B-spline basis functions


julianfaraway/brinla documentation built on April 6, 2023, 2:33 p.m.