View source: R/methods.survfitr.R
| plot.survfitr | R Documentation |
Plots the estimated survival (or probability) function from a
survfitr object, one curve per group when the fit has strata.
Additional fits can be added to the same axes with the lines method.
## S3 method for class 'survfitr'
plot(x, conf.int = TRUE, prob = FALSE, ...)
## S3 method for class 'survfitr'
lines(x, prob = FALSE, ...)
x |
an object of class |
conf.int |
if |
prob |
if |
... |
additional arguments passed to |
No return value; called for its side effect.
psh_fit(), wc_fit(), mlefrailty_fit()
data(MMC)
fit <- survfitr(Survr(id, time, event) ~ group,
data = MMC,
type = "wang-chang"
)
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.