Learn R Programming

reliaR (version 0.01)

Loggammasurvival: Survival related functions for the log-gamma(LG) distribution

Description

Conditional reliability function (crf), hazard function, hazard rate average (HRA) and survival function for the log-gamma(LG) distribution with shape parameters alpha and lambda.

Usage

crf.log.gamma(x, t = 0, alpha, lambda) hlog.gamma(x, alpha, lambda) hra.log.gamma(x, alpha, lambda) slog.gamma(x, alpha, lambda)

Arguments

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

Value

crf.log.gamma gives the conditional reliability function (crf), hlog.gamma gives the hazard function, hra.log.gamma gives the hazard rate average (HRA) function, and slog.gamma gives the survival function for the log-gamma(LG) distribution.

References

Klugman, S., Panjer, H. and Willmot, G. (2004). Loss Models: From Data to Decisions, 2nd ed., New York, Wiley.

Lawless, J. F., (2003). Statistical Models and Methods for Lifetime Data, 2nd ed., John Wiley and Sons, New York.

See Also

dlog.gamma for other log-gamma(LG) distribution related functions;

Examples

Run this code
## load data set
data(conductors)
## Maximum Likelihood(ML) Estimates of alpha & lambda for the data(conductors)
## Estimates of alpha & lambda using 'maxLik' package
## alpha.est = 0.0088741, lambda.est = 0.6059935

## Reliability indicators for data(conductors):

## Reliability function
slog.gamma(conductors, 0.0088741, 0.6059935)

## Hazard function
hlog.gamma(conductors, 0.0088741, 0.6059935)

## hazard rate average(hra)
hra.log.gamma(conductors, 0.0088741, 0.6059935)

## Conditional reliability function (age component=0)
crf.log.gamma(conductors, 0.00, 0.0088741, 0.6059935)

## Conditional reliability function (age component=3.0)
crf.log.gamma(conductors, 3.0, 0.0088741, 0.6059935)

Run the code above in your browser using DataLab