Learn R Programming

reliaR (version 0.01)

FlexWeibullsurvival: Survival related functions for the flexible Weibull(FW) distribution

Description

Conditional reliability function (crf), hazard function, hazard rate average (HRA) and survival function for the flexible Weibull(FW) distribution with parameters alpha and beta.

Usage

crf.flex.weibull(x, t = 0, alpha, beta) hflex.weibull(x, alpha, beta) hra.flex.weibull(x, alpha, beta) sflex.weibull(x, alpha, beta)

Arguments

x
vector of quantiles.
alpha
parameter.
beta
parameter.
t
age component.

Value

crf.flex.weibull gives the conditional reliability function (crf), hflex.weibull gives the hazard function, hra.flex.weibull gives the hazard rate average (HRA) function, and sflex.weibull gives the survival function for the flexible Weibull(FW) distribution.

References

Bebbington, M., Lai, C.D. and Zitikis, R. (2007). A flexible Weibull extension, Reliability Engineering and System Safety, 92, 719-726.

See Also

dflex.weibull for other flexible Weibull(FW) distribution related functions;

Examples

Run this code
## load data set
data(repairtimes)
## Maximum Likelihood(ML) Estimates of alpha & beta for the data(repairtimes)
## Estimates of alpha & beta using 'maxLik' package
## alpha.est = 0.07077507, beta.est = 1.13181535

## Reliability indicators for data(repairtimes):

## Reliability function
sflex.weibull(repairtimes, 0.07077507, 1.13181535)

## Hazard function
hflex.weibull(repairtimes, 0.07077507, 1.13181535)

## hazard rate average(hra)
hra.flex.weibull(repairtimes, 0.07077507, 1.13181535)

## Conditional reliability function (age component=0)
crf.flex.weibull(repairtimes, 0.00, 0.07077507, 1.13181535)

## Conditional reliability function (age component=3.0)
crf.flex.weibull(repairtimes, 3.0, 0.07077507, 1.13181535)

Run the code above in your browser using DataLab