survFunc: Survival Functions

SurvFuncR Documentation

Survival Functions

Description

Constructs the survival function for a parameter distribution.

Usage

SurvFunc(dist, theta)

Arguments

dist

String, distribution name.

theta

Numeric parameter vector.

Details

The parameter vector theta should contain the following elements, in order, according to the distribution:

Exponential

Rate \lambda.

Gamma

Shape \alpha, rate \lambda.

Generalized Gamma

Shape 1 \alpha, shape 2 \beta, rate \lambda.

Log-Normal

Locaion \mu, scale \sigma.

Weibull

Shape \alpha, rate \lambda.

Value

Survival function.

Examples

# Survival function for the generalized gamma.
surv <- SurvFunc(dist = "gen-gamma", theta = c(2, 2, 2))

# Evaluation.
surv(1.0)

zrmacc/Temporal documentation built on Sept. 29, 2023, 11:25 p.m.