Skip to contents

Validate an M-spline object supplied as a list, choosing defaults if needed.

Usage

mspline_list_init(mspline, obstimes = NULL)

Arguments

mspline

A list with any or none of the following components: df, degree, bsmooth, knots, bknot, as documented in mspline_init.

obstimes

Vector of observation times whose quantiles will be used to choose knot locations

Value

A list defining the M-spline, with any omitted list components set to defaults. See mspline_init for details.

If mspline$knots is not supplied, giving knot locations, then either mspline$bknot or obstimes must be specified, so that default locations can be obtained.