Last chance! 50% off unlimited learning
Sale ends in
Obtain residuals for the mixture cure models
# S3 method for mixcure
residuals(
object,
data,
type = c("WLCH", "Cox-Snell", "M-Cox-Snell", "Martingale", "M-Martingale", "M2",
"M3", "D2"),
type2 = c("residuals", "partial"),
model = c("latency", "incidence"),
...
)
an object of mixcure
the data used to obtain mixcure object.
residuals type. WLCH is a modified residual proposed in Wileyto et al (2013). The rest types of residuals are defined in the same way as in the classic survival models.
residual type, either "residuals" for regular residuals or "partial" for partial residuals),
if "latency" (default), residuals for latency model are generated. Otherwise, "incidence" means that residuals for incidence model are generated.
for compatibility purpose. Not used.
It is a list containing at least the following components:
residuals type
residuals of the model
This function computes residuals for the fitted model from mixcure().
Peng, Y. and Taylor, J. M. G. Residual-based model diagnosis methods for mixture cure models. Biometrics, 73:495<U+2013>505, 2017
mixcure
# NOT RUN {
data(leukaemia)
residuals(mixcure(Surv(time, cens) ~ transplant, ~ transplant,
data = leukaemia), data = leukaemia, type = "Martingale")
# }
Run the code above in your browser using DataLab