EMICM in package Icens by incorporating function Aintmap in package interval. By defult, the function provides an NPMLE for the distribution function of the survival time.
ModifiedEMICM(A, EMstep = TRUE, ICMstep = TRUE, keepiter = FALSE,
tol = 1e-06, maxiter = 1000)keepiter is true; state of sigma during the iterationpfintmap where a subject is at risk. Aintmap, function ModifiedEMICM often produces intmap with smaller size than function EMICM, especially when exact observations ($L_i = R_i$) exist. In addition, object ppairs is returned for later use in computing the test statistics in functions gLRT1, gLRT2, gLRT3, gLRT4, and ScoreTest. Also, a bug was identified in using EMICM when ICMstep=F is specified. The problem is fixed by calling ModifiedEMICMmac, a modified version of function EMICMmac from package Icens.Either EM, ICM, or both steps can be taken in the estimation. When ICMstep = FALSE, the function computes a self-consistent estimate, the same results as obtained from function icfit in package interval.
EMICM by Alain Vandal and Robert Gentleman .J. A. Wellner and Y. Zhan (1997), "A hybrid algorithm for computation of the nonparametric maximum likelihood estimator from censored data", JASA.
Aintmap, ModifiedEMICMmac
data(diabetes)
ModifiedEMICM(diabetes[,1:2])
data(cosmesis)
ModifiedEMICM(cosmesis[,1:2])
Run the code above in your browser using DataLab