survpred.cureph {curephEM} | R Documentation |
Prediction for a Logistic-CoxPH Cure-Rate Model
Description
Compute Predictions and Survival Curves from a Logistic-CoxPH Cure-Rate Model
Usage
## S3 method for class 'cureph'
survpred(object, newdata , time, center = F)
basehaz.cureph(object)
## S3 method for class 'survpred.cureph'
plot(x, pooled = T, censor = x$censored,...)
Arguments
object |
a |
newdata |
a data frame with the same variable names as those that appear in the The curve(s) produced will be representative of a cohort whose covariates correspond to the values in |
time |
a numeric vector; all the time points to be evaluated in the survival table in addition to the observed event times. |
center |
logical; if |
x |
a |
pooled |
logical; if |
censor |
a numeric vector of the observed censoring times. If not |
... |
Other parameters to match the generic S3 method. |
Details
The means of factor variables are not computed. Instead, the baseline level is used.
The NPMLE baseline survival is estimated in a Breslow-Nelson-Aalen fashion.
Value
logistic.linear.predict |
the linear predictions for cure indicator logistic model. |
logistic.linear.prob |
the estimated probability for NOT being cured. |
cox.linear.predict |
the linear predictions for event time CoxPH model. |
cox.cumhaz |
the baseline cummulative hazard for event time CoxPH model. |
surv.cox |
the marginal survival table for the cure-rate model. |
surv.cureph |
the conditional survival table for event time CoxPH model. |
... |
The object will also contain the following: |
Author(s)
Jue (Marquis) Hou
See Also
Examples
library(curephEM)
# A simulated data set
data("sim.cureph.data")
# Fit logistic-CoxPH cure-rate model
fit=cureph(Surv.cure(time,time2,event,origin=0,end=20)~Z1+Z2+Z3+Z4,data=sim.cureph.data)
# The survival-prediction object
mysurv = survpred(fit,center=TRUE)
oldpar = par()
par(mfrow=c(1,2))
plot(mysurv)
plot(mysurv,FALSE)
par(oldpar)