print.KaplanMeier function

Print function for object of class 'KaplanMeier'

Print function for object of class 'KaplanMeier'

## S3 method for class 'KaplanMeier' print(x, digits = 4, type = "risk", method = NULL, ...)

Arguments

  • x: an object of class 'KaplanMeier'
  • digits: number of digits to print the results
  • type: either "surv" or "risk" (the default), depending on whether we want to print the results in terms of a survival probability or a risk (i.e., one minus the survival probability).
  • method: either "EL", "Wald" or "both", depending on whether we want to print the results obtained when using empirical likelihood inference (EL), Wald-type inference (Wald) or both. Default is 'NULL', which means that 'method' inherits the value of the corresponding control parameter used when creating the object 'x'.
  • ...: Not used

Returns

no return value, called for printing only.

Examples

# This example reproduces some results presented in Table 1 of Thomas and Grunkemeier (1975) ResKM.1.95 <- KaplanMeier(time=Freireich$time[Freireich$group==1], status=Freireich$status[Freireich$group==1], t=10, level=0.95, contr=list(tol=1e-4)) print(ResKM.1.95, digits=3, type="surv", method="EL") # EL results for survival print(ResKM.1.95, digits=3, type="risk", method="Wald") # Wald results for risk

Author(s)

Paul Blanche

  • Maintainer: Paul Blanche
  • License: GPL (>= 3)
  • Last published: 2024-08-29

Useful links