calculate_ranks: Computation of Johnson Ranks

Description Usage Arguments Value Examples

Description

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

Usage

1
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

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

weibulltools documentation built on May 2, 2019, 11:01 a.m.