Skip to contents

Define a parametric survival distribution.

Usage

define_surv_dist(
  distribution = c("exp", "weibull", "weibullPH", "lnorm", "llogis", "gamma", "gompertz",
    "gengamma", "gengamma.orig", "genf", "genf.orig"),
  ...
)

Arguments

distribution

A parametric survival distribution.

...

Additional distribution parameters (see respective distribution help pages).

Value

A surv_dist object.

Examples


define_surv_dist(distribution = "exp", rate = .5)
#> $distribution
#> [1] "exp"
#> 
#> $rate
#> [1] 0.5
#> 
#> attr(,"class")
#> [1] "surv_dist"   "surv_object"
define_surv_dist(distribution = "gompertz", rate = .5, shape = 1)
#> $distribution
#> [1] "gompertz"
#> 
#> $rate
#> [1] 0.5
#> 
#> $shape
#> [1] 1
#> 
#> attr(,"class")
#> [1] "surv_dist"   "surv_object"