| nocrossings {survELtest} | R Documentation |
The test that excludes the possibility of crossings or alternative orderings among the survival functions
Description
The test nocrossings should be used before one-sided testing via intELtest
or supELtest to exclude the possibility of crossings or alternative orderings among the survival functions.
Usage
nocrossings(
formula,
data = NULL,
group_order = NULL,
t1 = 0,
t2 = Inf,
sided = 2,
nboot = 1000,
alpha = 0.05,
seed = 1011,
nlimit = 200
)
Arguments
formula |
a formula object with a |
data |
an optional data frame containing the variables in the |
group_order |
a |
t1 |
the first endpoint of a prespecified time interval, if any, to which the comparison of the survival functions is restricted.
The default value is |
t2 |
the second endpoint of a prespecified time interval, if any, to which the comparison of the survival
functions is restricted. The default value is |
sided |
|
nboot |
the number of bootstrap replications in calculating critical values for the tests.
The default value is |
alpha |
the pre-specified significance level of the tests. The default value is |
seed |
the seed for the random number generator in |
nlimit |
a number used to calculate |
Value
nocrossings returns a nocrossings object, a list with 12 elements:
-
callthe function call -
decision1for rejection of the null hypothesis that there are crossings or alternative orderings among the survival functions, and0otherwise -
formulathe value of the input argument of nocrossings -
datathe value of the input argument of nocrossings -
group_orderthe value of the input argument of nocrossings -
t1the value of the input argument of nocrossings -
t2the value of the input argument of nocrossings -
sidedthe value of the input argument of nocrossings -
nbootthe value of the input argument of nocrossings -
alphathe value of the input argument of nocrossings -
seedthe value of the input argument of nocrossings -
nlimitthe value of the input argument of nocrossings
Methods defined for nocrossings objects are provided for print and summary.
References
H. Chang, I.W. McKeague, "Empirical likelihood based tests for stochastic ordering under right censorship," Electronic Journal of Statistics, Vol. 10, No. 2, pp. 2511-2536 (2016).
H. Chang, I.W. McKeague, "Nonparametric testing for multiple survival functions with non-inferiority margins," Annals of Statistics, Vol. 47, No. 1, pp. 205-232, (2019).
See Also
hepatitis, intELtest, supELtest, ptwiseELtest, print.nocrossings, summary.nocrossings
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