Create a Survdef Object for a Weibull Distribution
survdefWeibull(shape, scale)
shape | the shape parameter for the Weibull distribution.
Parametrization is according to built-in R functions for the Weibull
distribution, see |
---|---|
scale | the scale parameter for the Weibull distribution. |
a list with components:
a vectorized function that takes time as input and returns the survival probability at that time
a vectorized function that takes time as input and returns the hazard at that time
survdefWeibull(shape = 1.05, scale = 8573)#> $S #> function (t) #> pweibull(t, shape = shape, scale = scale, lower.tail = F) #> <environment: 0x7fb6660a08d8> #> #> $h #> function (t) #> dweibull(t, shape = shape, scale = scale)/pweibull(t, shape = shape, #> scale = scale, lower.tail = F) #> <environment: 0x7fb6660a08d8> #>