cbc | R Documentation |
Function for computing the basis matrix for restricted cubic splines which are constant beyond the last knot
cbc(x, df = NULL, knots = NULL, ortho = FALSE, R.inv = NULL, intercept = FALSE)
x |
Values to evaluate the basis functions in. |
df |
Degrees of freedom. One can supply |
knots |
Chosen knots for the spline. |
ortho |
Logical. If |
R.inv |
Matrix or vector containing the values of the R matrix from the QR decomposition of the basis matrix.
This is used for making new predictions based on the initial orthogonalization.
Therefore the default is |
intercept |
Logical. If |
A matrix with containing the basis functions evaluated in x
.
Andersson T.M.-L., et al. (2011) Estimating and modelling cure in population-based cancer studies within the framework of flexible parametric survival models. BMC Medical Research Methodology, 11:96.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.