Validate an M-spline object supplied as a list, choosing defaults if needed.
Source:R/mspline_init.R
mspline_list_init.Rd
Validate an M-spline object supplied as a list, choosing defaults if needed.
Arguments
- mspline
A list with any or none of the following components:
df
,degree
,bsmooth
,knots
,bknot
, as documented inmspline_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.