Learn R Programming

reliaR (version 0.01)

Gompertzsurvival: Survival related functions for the Gompertz distribution

Description

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

Usage

crf.gompertz(x, t = 0, alpha, theta) hgompertz(x, alpha, theta) hra.gompertz(x, alpha, theta) sgompertz(x, alpha, theta)

Arguments

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

Value

crf.gompertz gives the conditional reliability function (crf), hgompertz gives the hazard function, hra.gompertz gives the hazard rate average (HRA) function, and sgompertz gives the survival function for the Gompertz distribution.

References

Marshall, A. W., Olkin, I.(2007). Life Distributions: Structure of Nonparametric, Semiparametric, and Parametric Families, Springer, New York.

See Also

dgompertz for other Gompertz distribution related functions;

Examples

Run this code
## load data set
data(sys2)
## Maximum Likelihood(ML) Estimates of alpha & theta for the data(sys2)
## Estimates of alpha & theta using 'maxLik' package
## alpha.est = 0.00121307, theta.est = 0.00173329

## Reliability indicators for data(sys2):

## Reliability function
sgompertz(sys2, 0.00121307, 0.00173329)

## Hazard function
hgompertz(sys2, 0.00121307, 0.00173329)

## hazard rate average(hra)
hra.gompertz(sys2, 0.00121307, 0.00173329)

## Conditional reliability function (age component=0)
crf.gompertz(sys2, 0.00, 0.00121307, 0.00173329)

## Conditional reliability function (age component=3.0)
crf.gompertz(sys2, 3.0, 0.00121307, 0.00173329)

Run the code above in your browser using DataLab