SurvFunc {Temporal} | R 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
.
- Gamma
Shape
, rate
.
- Generalized Gamma
Shape 1
, shape 2
, rate
.
- Log-Normal
Locaion
, scale
.
- Weibull
Shape
, rate
.
Value
Survival function.
Examples
# Survival function for the generalized gamma.
surv <- SurvFunc(dist = "gen-gamma", theta = c(2, 2, 2))
# Evaluation.
surv(1.0)
[Package Temporal version 0.3.0.1 Index]