rtype2: Simulating a progressive type-II censoring scheme

Description Usage Arguments Value Author(s) References Examples

Description

Simulates a progressive type-II censoring scheme.

Usage

1
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 R, of the removed alive items.

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 Inf by default.

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

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

bccp documentation built on May 18, 2021, 9:07 a.m.

Related to rtype2 in bccp...