Define a parametric survival distribution.

define_survival(
  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_survival(distribution = "exp", rate = .5)
#> $distribution #> [1] "exp" #> #> $rate #> [1] 0.5 #> #> attr(,"class") #> [1] "surv_object" "surv_dist"
define_survival(distribution = "gompertz", rate = .5, shape = 1)
#> $distribution #> [1] "gompertz" #> #> $rate #> [1] 0.5 #> #> $shape #> [1] 1 #> #> attr(,"class") #> [1] "surv_object" "surv_dist"