print.TwoSampleKaplanMeier | R Documentation |
Print function for object of class 'TwoSampleKaplanMeier'
## S3 method for class 'TwoSampleKaplanMeier'
print(x, digits = 4, what = "all", method = NULL, ...)
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 |
no return value, called for printing only.
Paul Blanche
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.