Define a parametric survival distribution.
Usage
define_surv_dist(
distribution = c("exp", "weibull", "weibullPH", "lnorm", "llogis", "gamma", "gompertz",
"gengamma", "gengamma.orig", "genf", "genf.orig"),
...
)
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"