rtype2 {bccp} | R Documentation |
Simulating a progressive type-II censoring scheme
Description
Simulates a progressive type-II censoring scheme.
Usage
rtype2(n, R, param, mle, cdf, lb = 0, ub = Inf)
Arguments
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 |
Value
A data frame with two columns including observed liftimes X
, and number of censored items R
.
Author(s)
Mahdi Teimouri
References
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.
Examples
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)
[Package bccp version 0.5.0 Index]