Learn R Programming

reliaR (version 0.01)

GenExpsurvival: Survival related functions for the Generalized Exponential (GE) distribution

Description

Conditional reliability function (crf), hazard function, hazard rate average (HRA) and survival function for the Generalized Exponential (GE) distribution with shape parameter alpha and scale parameter lambda.

Usage

crf.gen.exp(x, t = 0, alpha, lambda) hgen.exp(x, alpha, lambda) hra.gen.exp(x, alpha, lambda) sgen.exp(x, alpha, lambda)

Arguments

x
vector of quantiles.
alpha
shape parameter.
lambda
scale parameter.
t
age component.

Value

crf.gen.exp gives the conditional reliability function (crf), hgen.exp gives the hazard function, hra.gen.exp gives the hazard rate average (HRA) function, and sgen.exp gives the survival function for the GE distribution.

References

Gupta, R. D. and Kundu, D. (2001). Exponentiated exponential family; an alternative to gamma and Weibull distributions. Biometrical Journal, 43(1), 117 - 130.

Gupta, R. D. and Kundu, D. (1999). Generalized exponential distributions. Australian and New Zealand Journal of Statistics, 41(2), 173 - 188.

See Also

dgen.exp for other GE distribution related functions;

Examples

Run this code
## load data set
data(bearings)
## Estimates of alpha & lambda using 'maxLik' package
## alpha.est = 5.28321139, lambda.est = 0.03229609
sgen.exp(bearings, 5.28321139, 0.03229609)
hgen.exp(bearings, 5.28321139, 0.03229609)
hra.gen.exp(bearings, 5.28321139, 0.03229609)
crf.gen.exp(bearings, 20.0, 5.28321139, 0.03229609)

Run the code above in your browser using DataLab