View source: R/methods.survfitr.R
| summary.survfitr | R Documentation |
Returns a matrix with the distinct event times and, at each of them, the number of events, the number of subjects at risk, the survival estimate and (when available) its standard error. If the fit has multiple curves, a list with one matrix per curve is returned.
## S3 method for class 'survfitr'
summary(object, ...)
## S3 method for class 'summary.survfitr'
print(x, scale = 1, digits = max(options()$digits - 4, 3), ...)
object |
output of a call to |
... |
other unused arguments. |
x |
a |
scale |
a numeric value to rescale the survival time. |
digits |
number of digits to print. |
For a single curve, a matrix; for multiple curves, a list of
class summary.survfitr with one matrix per curve.
survfitr()
data(MMC)
summary(survfitr(Survr(id, time, event) ~ group, data = MMC))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.