Learn R Programming

timeEL (version 0.9.1)

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

Description

Print function for object of class 'TwoSampleKaplanMeier'

Usage

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

Value

no return value, called for printing only.

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

Author

Paul Blanche

Examples

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

Run the code above in your browser using DataLab