View source: R/model_helper_functions.R
get_default_knots_list | R Documentation |
This function creates a list containing three numeric vectors. Each numeric vector is a sequence of increasing integers giving the location of knots used for spline and piecewise baseline hazard specifications. This function generates this list according to the conventions and recommended locations of these knots, which depends on the choice of hazard specification, number of knots requested, and distribution of observed event times.
get_default_knots_list(y1, y2, delta1, delta2, p01, p02, p03, hazard, model)
y1 |
Numeric vectors of length |
y2 |
Numeric vectors of length |
delta1 |
Numeric vectors of length |
delta2 |
Numeric vectors of length |
p01 , p02 , p03 |
Integers indicating how many parameters the model for each transition baseline hazard should specify. |
hazard |
String specifying the form of the baseline hazard. |
model |
String specifying the transition assumption |
A list of three increasing sequences of integers, each corresponding to the knots for the flexible model on the corresponding transition baseline hazard.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.