supELtest {EL2Surv} | R Documentation |
The maximally selected likelihood ratio test
Description
supELtest
provides a maximal deviation type statistics that
is better adapted at detecting local differences:
\sup_{t\in U}\{-2\log R(t)\},
where R(t)
is an empirical likelihood
(EL) ratio that compares two survival functions at each time point t
in the set of
observed uncensored lifetimes, U
.
Usage
supELtest(data, g1 = 1, t1 = 0, t2 = Inf, sided = 2,
nboot = 1000, alpha = 0.05, compo = FALSE, seed = 1011,
nlimit = 200)
Arguments
data |
a data frame/matrix with 3 columns. The first column is
the survival time. The second is the censoring indicator. The last is
the grouping variable. An example as the input to |
g1 |
the group with longer survival in one-sided testing with the default value of |
t1 |
pre-specified |
t2 |
pre-specified |
sided |
2 if two-sided test, and 1 if one-sided test.
It assumes the default value of |
nboot |
number of bootstrap replications in calculating critical values
with the defualt value of |
alpha |
pre-specified significance level of the test with the default value of |
compo |
FALSE if taking the standardized square of the difference as the local statisic
for two-sided testing, and TRUE if constructing for one-sided testing, but only the positive
part of the difference included. It assumes the default value of |
seed |
the parameter with the default value of |
nlimit |
the splitting unit with the default value of |
Value
supELtest
returns a list with three elements:
-
teststat
the resulting integrated test statistic -
critval
the critical value -
pvalue
the p-value based on the integrated statistic
References
H.-w. Chang and 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).
See Also
hazardcross
, intELtest
, ptwiseELtest
Examples
library(EL2Surv)
supELtest(hazardcross)
## OUTPUT:
## $teststat
## [1] 8.945539
##
## $critval
## [1] 8.738189
##
## $pvalue
## [1] 0.045