Last chance! 50% off unlimited learning
Sale ends in
Summary function will calculate bootstrap variances of the estimates in a mixcure fit if it detects that the variances do not exist. Then it will print estimates, their standard errors, z-scores and p-values from normal distribution
# S3 method for mixcure
summary(object, R = 100, index = 1:2, ...)
A mixcure object
the number of boot samples required to calculate bootstrap variances.
An argument used in censboot function in boot package to specify the columns in data that store survival times and censoring indicators
other parameters to be passed into print function
A modified mixcure object with extra components:
a censboot object
standard errors of parameters in mixcure
the number of bootstrap samples used
censboot in boot package is called to calculate bootstrap variances
mixcure
# NOT RUN {
data(leukaemia)
# To reduce running time of this example, R is set to 2.
summary(mixcure(Surv(time, cens) ~ transplant, ~ transplant,
data = leukaemia, savedata = TRUE), R = 2)
# }
Run the code above in your browser using DataLab