emCenWbMix.T2 {extWeibQuant} | R Documentation |
This is the interface for the EM algorithm of censored Weibull mixture for Type II censored data. The description of the Weibull mixture model can be found in emCenWbMix.T1
.
emCenWbMix.T2(dat, n, iniParam = NULL, useC = FALSE, conCr = 1e-06, nIter = 10000)
dat |
A vector of the observations after censoring. None NA or negative values allowed. |
n |
The original sample size, including both the censored and uncensored observations. See |
iniParam |
See |
useC |
See |
conCr |
See |
nIter |
See |
See emCenWbMix.T1
See emCenWbMix.T1
rweibull
, quanWbMix
, simWbMix
, cenWbMLE.T2
, emCenWbMix.T1
mmix = rbind(c(0.7, 5, 7),c(0.3, 15, 6)) vmix = c(mmix) #A vector version of the paramters set.seed(1) y <- sort(simWbMix(300, mmix)) #Generate the data #The uncensored EM emCenWbMix.T2(y, 300, iniParam=vmix, useC=TRUE) #Type II censoring with the largest half of the data censored. emCenWbMix.T2(y[1:150], 300, iniParam=vmix, useC=TRUE)