View source: R/weibullDropout.R
| weibullDropout | R Documentation |
Fit scale and shape parameters of the Weibull distribution to match dropout rates at two specified time points. Weibull distribution can be used as a dropout distribution because it has two parameters.
Note that It is users' responsibility to assure that the units of dropout time, readout of non-tte endpoints, and trial duration are consistent.
weibullDropout(time, dropout_rate)
time |
a numeric vector of two time points at which dropout rates are specified. |
dropout_rate |
a numeric vector of dropout rates at |
a named vector for scale and shape parameters.
## dropout rates are 8% and 18% at time 12 and 18.
weibullDropout(time = c(12, 18), dropout_rate = c(.08, .18))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.