survSL.expreg | R Documentation |
These prediciton algorithm use the survreg
function from the survival
package to estimate parametric survival regressions. See details for specific parametric models.
survSL.expreg(time, event, X, newX, new.times, obsWeights, ...)
survSL.weibreg(time, event, X, newX, new.times, obsWeights, id, ...)
survSL.loglogreg(time, event, X, newX, new.times, obsWeights, id, ...)
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. |
... |
Additional ignored arguments. |
Parametric regression models assume a particular parametric form for the distribution of the event given covariates, where the covariates contribute in a linear way to one of the parameters of the distribution. Implemented here are currently exponential (survSL.expreg
), Weibull (survSL.weibreg
), and log-logistic (survSL.loglogreg
) regressions.
Note that survival regressions typically assume that the distribution of the event is continuous and strictly positive. Therefore, they will throw errors if there are large discrete components of the observed distribution of the event. Since some survival outcomes have positive mass at zero, we have amended the standard survival regression to include a component at zero, making this a zero-inflated regression model. Specifically, if there are observed event times equal to zero, then a preliminary logistic regression is fit to predict the probability that the event time is exactly zero, and the survival regression is fit to the strictly positive part of the distribution.
pred |
Matrix of predictions, with the same number of rows as |
fit |
Two-element list including |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.