cbc: Restricted cubic splines with cure

Description Usage Arguments Value References

View source: R/cbc.R

Description

Function for computing the basis matrix for restricted cubic splines which are constant beyond the last knot

Usage

1
cbc(x, knots, ortho = TRUE, R.inv = NULL, intercept = TRUE)

Arguments

x

Values to evaluate the basis functions in.

knots

Chosen knots for the spline.

ortho

Logical. If TRUE (default) orthogonalization of the basis matrix is carried out.

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 NULL.

intercept

Logical. If FALSE, the intercept of the restricted cubic spline is removed.

Value

A matrix with containing the basis functions evaluated in x.

References

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.


LasseHjort/cuRe documentation built on Sept. 23, 2018, 7:30 p.m.