exp_mean_ci: Calculates 2-sided CI for an exponential mean

View source: R/exp_mean_ci.R

exp_mean_ciR Documentation

Calculates 2-sided CI for an exponential mean

Description

exp_mean_ci calculates the 2-sided CI for an exponential mean given a test duration (hours, miles, rounds, etc.), number of failures, confidence level, and assuming the test is time terminated.

Usage

exp_mean_ci(r, duration, alpha = 0.2)

Arguments

r

A numeric vector indicating the observed number of failures.

duration

A numeric vector indicating the tested duration (hours, miles, rounds, etc.).

alpha

The allowable type I failure rate (1-confidence). Values must be within 0.0:1.00 default is set to 0.20.

Value

The output will be a numeric vector, indicating the LCB and UCB of the exponential mean with the given level of confidence. The units will be the same as the units of the supplied duration.

See Also

exp_mtbf_req, exp_reliability_req, exp_test_duration, exp_equal_mtbf, exp_fixed_duration_tests

Examples

# What is the 80% 2-sided CI for the MTBF (assuming the times between 
  # failure are exponentially distributed), given a test
  # time of 367 hours, and 0 failures.
exp_mean_ci(r = 0, duration = 367, alpha = 0.20)

# What is the 80% 2-sided CI for the MTBF (assuming the times between 
  # failure are exponentially distributed), given a test
  # time of 920 hours, and 7 failures.
exp_mean_ci(r = 7, duration = 920, alpha = 0.20)


jjw3952/mcotear documentation built on Sept. 2, 2023, 10:30 a.m.