mr_method: Estimation of Failure Probabilities using Median Ranks

Description Usage Arguments Details Value Examples

View source: R/probability_estimators.R

Description

Soft-deprecated lifecycle

mr_method() is no longer under active development, switching to estimate_cdf is recommended.

Usage

1
2
3
4
5
6
7
mr_method(
  x,
  status = rep(1, length(x)),
  id = NULL,
  method = c("benard", "invbeta"),
  ties.method = c("max", "min", "average")
)

Arguments

x

A numeric vector which consists of lifetime data. Lifetime data could be every characteristic influencing the reliability of a product, e.g. operating time (days/months in service), mileage (km, miles), load cycles.

status

A vector of ones indicating that every unit i has failed.

id

A vector for the identification of every unit. Default is NULL.

method

Method for the estimation of the cdf. Can be "benard" (default) or "invbeta".

ties.method

A character string specifying how ties are treated, default is "max".

Details

This non-parametric approach (Median Ranks) is used to estimate the failure probabilities in terms of complete data. Two methods are available to estimate the cumulative distribution function F(t):

Value

A tibble with failed units containing the following columns:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Vectors:
obs   <- seq(10000, 100000, 10000)
state <- rep(1, length(obs))
uic   <- c("3435", "1203", "958X", "XX71", "abcd", "tz46",
           "fl29", "AX23", "Uy12", "kl1a")

# Example 1 - Benard's approximation:
tbl_mr <- mr_method(
  x = obs,
  status = state,
  id = uic,
  method = "benard"
)

# Example 2 - Inverse beta distribution:
tbl_mr_invbeta <- mr_method(
  x = obs,
  status = state,
  method = "invbeta"
)

weibulltools documentation built on Jan. 16, 2021, 5:21 p.m.