Print function for object of class 'TwoSampleKaplanMeier'
Print function for object of class 'TwoSampleKaplanMeier'
## 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
Returns
no return value, called for printing only.
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")