View source: R/separation.detection.r
separation.detection | R Documentation |
A function for identifying whether or not separation has occurred under MC model.
separation.detection(fit, nsteps = 30, pl)
fit |
mixcure object as the result of mixcure.penal.est function fit. |
pl |
if TRUE, uses FT-PL; otherwise uses the usual likelihood for the model. |
nsteps |
Starting from iterlim = 1, the mixcure.penal.est is refitted for iterlim = 2, iterlim = 3, . . . , maxit = nsteps. Default value is 30 |
Identifies separated cases for object returned from mixcure.penal.est(), by refitting the model. At each iteration the maximum number of allowed IWLS iterations is fixed starting from 1 to nsteps. For each value of iterlim (under mixcure.penal.est function), the estimated asymptotic standard errors are divided to the corresponding ones resulted for iterlim=1. Based on the results in Lesaffre & Albert (1989), if the sequence of ratios in any column of the resultant matrix diverges, then separation occurs and the maximum likelihood estimate for the corresponding parameter has value minus or plus infinity.
A matrix of dimension nsteps by length of number of parameters, that contains the ratios of the estimated asymptotic standard errors.
Changchang Xu
Lesaffre (1989)
data(ANNbcBMdat1) # Fit the MC model using maximum likelihoodlizards. mc.mle1 <- mixcure.penal.est(Surv(Time, CENS == 1) ~ Her2,data=ANNbcBMdat1,init=c(1,-0.1,-10,1,1), pl=F) separation.detection(mc.mle1, pl=F, nsteps =30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.