Learn R Programming

weibulltools (version 1.0.1)

calculate_ranks: Computation of Johnson Ranks

Description

This function calculates the Johnson ranks which are used to estimate the failure probabilities in case of (multiple) right censored data.

Usage

calculate_ranks(f, n_out, n)

Arguments

f

a numeric vector indicating the number of failed units for a specific realization of the lifetime characteristic.

n_out

a numeric vector indicating the number of failed and censored units that have a shorter realization of lifetime characteristic as unit i.

n

an integer value indicating the sample size.

Value

A numeric vector containing the computed Johnson ranks.

Examples

Run this code
# NOT RUN {
  defectives <- c(0, 1, 2, 0, 0, 0, 3, 0, 2, 0)
  n_out <- c(0, 2, 4, 8, 9, 11, 12, 16, 20, 22)
  n <- 23
  johnson_ranks <- calculate_ranks(f = defectives, n_out = n_out, n = n)
# }

Run the code above in your browser using DataLab