print.supELtest {survELtest}R Documentation

Print a supELtest object

Description

Print the maximally selected EL statistics and the p-value of the test.

Usage

## S3 method for class 'supELtest'
print(x, digits = max(3L, getOption("digits") - 3L), quiet = FALSE, ...)

Arguments

x

the result of a call to the supELtest function

digits

significant digits to print, the default value is max(3L, getOption("digits") - 3L)

quiet

a logical indicating whether to reduce the amount of output or not, the default value is FALSE

...

for future method

See Also

hepatitis, supELtest, summary.supELtest

Examples

library(survELtest)
nocrossings(survival::Surv(hepatitis$time, hepatitis$censor)~
    hepatitis$group, sided = 1)

## OUTPUT:
## Call:
## nocrossings(formula = survival::Surv(hepatitis$time, hepatitis$censor) ~ 
##     hepatitis$group, sided = 1)
## 
## Decision = 1

## A decision value of 1 means the case of crossings or alternative orderings among the 
## survival functions is excluded. Thus, we can proceed to the one-sided test.

result = supELtest(survival::Surv(hepatitis$time, hepatitis$censor)~
             hepatitis$group, sided = 1)
print(result)

## OUTPUT:
## Call:
## supELtest(formula = survival::Surv(hepatitis$time, hepatitis$censor) ~  
##     hepatitis$group, sided = 1)
## 
## One-sided maximally selected EL test statistic = 10.36, p = 0.006

[Package survELtest version 2.0.1 Index]