rpcens2 | R Documentation |
This function generates progressive Type-II censored samples based on the algorithm provided by Balakrishnan and Sandhu (1995).
rpcens2(n, R, dist, ...)
n |
total number of items in the sample. |
R |
a vector of non-negative integers representing the number of items
censored at each stage of the experiment. The length of |
dist |
a character string specifying the name of the distribution
(e.g., |
... |
further arguments to be passed to |
This function implements the algorithm described by Balakrishnan and Sandhu (1995) to simulate progressive Type-II censored samples. Progressive Type-II censoring is a common scheme in reliability and life-testing experiments, where items are progressively removed (censored) during the testing process.
A numeric vector of size m
, representing the failure times of the observed items.
Balakrishnan, N., & Sandhu, R. A. (1995). A simple simulational algorithm for generating progressive Type-II censored samples. The American Statistician, 49(2), 229-230.
rcens
# Generate a progressive Type-II censored sample from the normal distribution
n <- 10
R <- c(2, 1, 2, 0, 0)
rpcens2(n, R, dist = "norm", mean = 0, sd = 1)
# Generate a progressive Type-II censored sample from the exponential distribution
rpcens2(n = 10, R = c(2, 2, 1, 0, 0), dist = "exp", rate = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.