summary.supELtest {survELtest} | R Documentation |
Summary function for supELtest object
Description
Returns a list containing the maximally selected EL statistics, the critical value based on bootstrap, and the p-value of the test.
Usage
## S3 method for class 'supELtest'
summary(object, digits = max(3L, getOption("digits") - 3L), quiet = FALSE, ...)
Arguments
object |
the result of a call to the |
digits |
significant digits to print, the default value is |
quiet |
a logical indicating whether to reduce the amount of output or not, the default value is |
... |
for future method |
Value
summary.supELtest
returns a list with following components:
-
call
the statement used to create thesupELtest
object -
teststat
the resulting integrated EL statistics -
critval
the critical value based on bootstrap -
pvalue
the p-value of the test -
sided
the value of the input argument of supELtest -
alpha
the value of the input argument of supELtest
See Also
hepatitis
, supELtest
, print.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)
summary(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,
## critical value based on bootstrap = 6.289 at a significance level of 0.05