View source: R/weibull_class.R
s_weibull | R Documentation |
Creates a SURVIVAL object with a Weibull distribution.
s_weibull(...)
... |
Parameters to define the distribution. See the Parameters for details |
a SURVIVAL object of the Weibull distribution family. See the
documentation of s_factory
for the methods available for SURVIVAL objects
To create an exponential survival object the following options are available:
scale
and shape
to specify the canonical parameters of the distribution, or
surv
, t
and shape
for the proportion surviving (no events) at time t and the shape parameter, or
fail
, t
and shape
for the proportion failing (events) at time t and the shape parameter or
intercept
and scale
for the parameters returned by survreg(.., dist = "weibull")
models.
scale = -log(surv)/(t^shape)
scale = -log(1-fail)/(t^shape)
The parameters should be spell correctly as partial matching is not available
s_weibull(scale = 2,shape = 2)
s_weibull(surv = 0.6, t= 12, shape = 0.5)
s_weibull(fail = 0.4, t = 12, shape =0.5)
s_weibull(intercept = 0.4, scale = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.