define_surv_param: Define Parametric Distribution

View source: R/surv_parametric.r

define_surv_paramR Documentation

Define Parametric Distribution

Description

Define parametric survival distribution with given parameter values. A complete listing of supported distributions is provided in the details section.

Usage

define_surv_param(distribution, ...)

define_survival(distribution, ...)

Arguments

distribution

a parametric survival distribution.

...

additional distribution parameters (see details section below)

Details

Supported distributions are listed in the table below.

Distribution Description Parameters Notes
"exp" Exponential rate
"lnorm" Lognormal meanlog, sdlog
"llogis" Log-Logistic shape, scale
"weibull" Weibull (AFT) shape, scale
"weibullPH" Weibull (PH) shape, scale
"gompertz" Gompertz shape, rate
"gamma" Gamma shape, scale
"gengamma" Generalized Gamma (stable) mu, sigma, Q Described in Prentice (1974)
"gengamma.orig" Generalized Gamma (original) shape, scale, k Described in Stacy (1962)
"genf" Generalized F (stable) mu, sigma, Q, P Described in Prentice (1975)
"genf.org" Generalized F (original) mu, sigma, s1, s2 Described in Prentice (1975)

Value

a surv_parametric object.

References

Stacy, E. W. (1962). A generalization of the gamma distribution. Annals of Mathematical Statistics 33:1187-92.

Prentice, R. L. (1974). A log gamma model and its maximum likelihood estimation. Biometrika 61(3):539-544.

R. L. Prentice (1975). Discrimination among some parametric models. Biometrika 62(3):607-614.

Examples


define_surv_param(distribution = "exp", rate = .5)
define_surv_param(distribution = "gompertz", rate = .5, shape = 1)

# Deprecated alias included for backwards compatability with heRomod
define_survival(distribution = "exp", rate = 0.05)


PolicyAnalysisInc/herosurv documentation built on May 21, 2023, 10:12 a.m.