SurvFunc: Survival Functions

View source: R/SurvFunctions.R

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)

Temporal documentation built on Sept. 24, 2023, 1:06 a.m.