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

Description Usage Arguments Value References See Also Examples

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

1
2
3
4
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 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)

reliaR documentation built on May 1, 2019, 9:51 p.m.