Learn R Programming

reliaR (version 0.01)

LogisRayleighsurvival: Survival related functions for the Logistic-Rayleigh(LR) distribution

Description

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

Usage

crf.logis.rayleigh(x, t = 0, alpha, lambda) hlogis.rayleigh(x, alpha, lambda) hra.logis.rayleigh(x, alpha, lambda) slogis.rayleigh(x, alpha, lambda)

Arguments

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

Value

crf.logis.rayleigh gives the conditional reliability function (crf), hlogis.rayleigh gives the hazard function, hra.logis.rayleigh gives the hazard rate average (HRA) function, and slogis.rayleigh gives the survival function for the Logistic-Rayleigh(LR) distribution.

References

Lan, Y. and Leemis, L. M. (2008). The Logistic-Exponential Survival Distribution, Naval Research Logistics, 55, 252-264.

See Also

dlogis.rayleigh for other Logistic-Rayleigh(LR) distribution related functions;

Examples

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

## Reliability indicators for data(stress):

## Reliability function
slogis.rayleigh(stress, 1.4779388, 0.2141343)

## Hazard function
hlogis.rayleigh(stress, 1.4779388, 0.2141343)

## hazard rate average(hra)
hra.logis.rayleigh(stress, 1.4779388, 0.2141343)

## Conditional reliability function (age component=0)
crf.logis.rayleigh(stress, 0.00, 1.4779388, 0.2141343)

## Conditional reliability function (age component=3.0)
crf.logis.rayleigh(stress, 3.0, 1.4779388, 0.2141343)

Run the code above in your browser using DataLab