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

View source: R/print.R

print.TwoSampleKaplanMeierR Documentation

Print function for object of class 'TwoSampleKaplanMeier'

Description

Print function for object of class 'TwoSampleKaplanMeier'

Usage

## S3 method for class 'TwoSampleKaplanMeier'
print(x, digits = 4, what = "all", method = NULL, ...)

Arguments

x

an object of class 'TwoSampleKaplanMeier'

digits

number of digits to print the results

what

either "SR", "RR", "Diff" or "all" (default), depending on whether we want to print the results for the survival ratio (SR), the risk ratio (RR), the risk difference (Diff) or all of them.

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

Value

no return value, called for printing only.

Author(s)

Paul Blanche

Examples

# This example reproduces some results presented in Table 4 of Thomas and Grunkemeier (1975)
Res2SKM95 <- TwoSampleKaplanMeier(time=Freireich$time,
                                  status=Freireich$status,
                                  group=Freireich$group,
                                  t=10)
print(Res2SKM95, digits=3, what="SR", method="EL")


timeEL documentation built on Sept. 12, 2024, 9:35 a.m.