EM algorithm for the Type-II right censored Weibull Mixture with two populations.

Description

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.

Usage

1
emCenWbMix.T2(dat, n, iniParam = NULL, useC = FALSE, conCr = 1e-06, nIter = 10000)

Arguments

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 cenWbMLE.T2.

iniParam

See emCenWbMix.T1

useC

See emCenWbMix.T1

conCr

See emCenWbMix.T1

nIter

See emCenWbMix.T1

Value

See emCenWbMix.T1

References

See emCenWbMix.T1

See Also

rweibull, quanWbMix, simWbMix, cenWbMLE.T2, emCenWbMix.T1

Examples

1
2
3
4
5
6
7
8
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)