rtype2 {bccp} | R Documentation |
Simulates a progressive type-II censoring scheme.
rtype2(n, R, param, mle, cdf, lb = 0, ub = Inf)
n |
Number of items placed on the test at time zero. |
R |
A vector that contains number |
param |
Character vector that contains the name of family's parameters. |
mle |
The maximum likelihood estimators of the parameters. |
cdf |
Expression for the cumulative distribution function. |
lb |
Lower bound of the family's support. That is zero by default. |
ub |
Upper bound of the family's support. That is |
A data frame with two columns including observed liftimes X
, and number of censored items R
.
Mahdi Teimouri
N. Balakrishnan and R. A. Sandhu 1995. A Simple Simulational Algorithm for Generating Progressive Type-II Censored Samples. The American Statistician, 49(2), 229-230.
n <- 20
R <- c(9, rep(0, 10) )
param <- c("alpha","beta")
mle <- c(0.80, 12)
cdf <- quote( 1-exp( beta*(1-exp( x^alpha )) ) )
lb <- 0
ub <- Inf
rtype2(n = n, R = R, param = param, mle = mle, cdf = cdf, lb = lb, ub = ub)