powered by
Constructs the survival function for a parameter distribution.
SurvFunc(dist, theta)
Survival function.
String, distribution name.
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\).
# 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