Learn R Programming

timeEL (version 0.9.1)

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

Description

Print function for object of class 'AalenJohansen'

Usage

# S3 method for AalenJohansen
print(x, digits = 4, method = NULL, ...)

Value

no return value, called for printing only.

Arguments

x

an object of class 'AalenJohansen'

digits

number of digits to print the results

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
x <- AalenJohansen(time=melanoma5$time, cause=melanoma5$status, t=4, level=0.95)
print(x, digits=3, method="EL")

Run the code above in your browser using DataLab