Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


Temporal (version 0.3.0.1)

SurvFunc: Survival Functions

Description

Constructs the survival function for a parameter distribution.

Usage

SurvFunc(dist, theta)

Value

Survival function.

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 λ.

Gamma

Shape α, rate λ.

Generalized Gamma

Shape 1 α, shape 2 β, rate λ.

Log-Normal

Locaion μ, scale σ.

Weibull

Shape α, rate λ.

Examples

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

# Evaluation.
surv(1.0)

Run the code above in your browser using DataLab