survSL.pchreg | R Documentation |
These prediciton algorithm use the pchreg
function from the pch
package to estimate piecewise constant hazard regressions.
survSL.pchreg(time, event, X, newX, new.times, obsWeights, breaks = 4, ...)
time |
Observed follow-up time; i.e. minimum of the event and censoring times. |
event |
Observed event indicator; i.e, whether the follow-up time corresponds to an event or censoring. |
X |
Training covariate data.frame. |
newX |
Test covariate data.frame to use for prediction. Should have the same variable names and structure as |
new.times |
Times at which to obtain to obtain the predicted survivals. |
obsWeights |
Observation weights. |
breaks |
Number or numeric vector of breaks to be passed to |
... |
Additional ignored arguments. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.