mspline_list_init {survextrap} | R Documentation |
Validate an M-spline object supplied as a list, choosing defaults if needed.
Description
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:
|
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.
[Package survextrap version 1.0 Index]