View source: R/SurvFunctions.R
SurvFunc | R Documentation |
Constructs the survival function for a parameter distribution.
SurvFunc(dist, theta)
dist |
String, distribution name. |
theta |
Numeric parameter vector. |
The parameter vector theta should contain the following elements, in order, according to the distribution:
Rate \lambda
.
Shape \alpha
, rate \lambda
.
Shape 1 \alpha
, shape 2 \beta
, rate \lambda
.
Locaion \mu
, scale \sigma
.
Shape \alpha
, rate \lambda
.
Survival function.
# Survival function for the generalized gamma.
surv <- SurvFunc(dist = "gen-gamma", theta = c(2, 2, 2))
# Evaluation.
surv(1.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.