Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

timeEL (version 0.9.1)

print.KaplanMeier: Print function for object of class 'KaplanMeier'

Description

Print function for object of class 'KaplanMeier'

Usage

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

Value

no return value, called for printing only.

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

Author

Paul Blanche

Examples

Run this code
# 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

Run the code above in your browser using DataLab