View source: R/piecewise_functions.R
pw_cum_mat | R Documentation |
This helper function takes in a vector of event times, and generates a matrix dividing each time into a vector giving the time accrued within each interval between consecutive elements of a vector of knots.
pw_cum_mat(y, knots)
y |
vector of event times. |
knots |
increasing vector of cutpoints |
a numeric matrix, with rows corresponding to elements of y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.