View source: R/autoplot.survfitr.R
| plotEstimators | R Documentation |
Fits the Peña-Strawderman-Hollander, the Wang-Chang and the gamma frailty MLE estimators to the same sample and draws the three curves on the same axes. Agreement between the PSH and the frailty estimates suggests independent inter-occurrence times, while a Wang-Chang curve separated from the PSH one points to within-subject correlation.
plotEstimators(x, conf.int = FALSE, level = 0.95, alpha.console = FALSE, ...)
x |
a survival recurrent event object, see |
conf.int |
draw the pointwise confidence bands of the estimators
that provide them? Default |
level |
confidence level of the bands. |
alpha.console |
passed to |
... |
additional arguments passed to the three fitting functions. |
A ggplot object.
autoplot.survfitr(), psh_fit(), wc_fit(),
mlefrailty_fit()
data(MMC)
plotEstimators(Survr(MMC$id, MMC$time, MMC$event))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.