Learn R Programming

reliaR (version 0.01)

Loglogsurvival: Survival related functions for the Loglog distribution

Description

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

Usage

crf.loglog(x, t = 0, alpha, lambda) hloglog(x, alpha, lambda) hra.loglog(x, alpha, lambda) sloglog(x, alpha, lambda)

Arguments

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

Value

crf.loglog gives the conditional reliability function (crf), hloglog gives the hazard function, hra.loglog gives the hazard rate average (HRA) function, and sloglog gives the survival function for the Loglog distribution.

References

Pham, H.(2002). A Vtub-Shaped Hazard Rate Function with Applications to System Safety, International Journal of Reliability and Applications. ,Vol. 3, No. l, pp. 1-16.

Pham, H.(2006). System Software Reliability, Springer-Verlag.

See Also

dloglog for other Loglog(Pham) distribution related functions;

Examples

Run this code
## load data set 
data(sys2)
## Maximum Likelihood(ML) Estimates of alpha & lambda for the data(sys2)
## alpha.est = 0.9058689 lambda.est = 1.0028228

## Reliability indicators for data(sys2):

## Reliability function
sloglog(sys2, 0.9058689, 1.0028228)

## Hazard function 
hloglog(sys2, 0.9058689, 1.0028228)

## hazard rate average(hra)
hra.loglog(sys2, 0.9058689, 1.0028228)

## Conditional reliability function (age component=0)
crf.loglog(sys2, 0.00, 0.9058689, 1.0028228)

## Conditional reliability function (age component=3.0)
crf.loglog(sys2, 3.0, 0.9058689, 1.0028228)

Run the code above in your browser using DataLab