| intELtest {survELtest} | R Documentation |
The integrated EL test
Description
intELtest gives a class of integrated EL statistics:
\sum_{i=1}^{m}w_i\cdot \{-2\log R(t_i)\},
where R(t) is the EL ratio that compares the survival functions at each given time t,
w_i is the weight at each t_i, and 0<t_1<\ldots<t_m<\infty are the (ordered)
observed uncensored times at which the Kaplan–Meier estimate is positive and less than 1 for
each sample.
Usage
intELtest(
formula,
data = NULL,
group_order = NULL,
t1 = 0,
t2 = Inf,
sided = 2,
nboot = 1000,
wt = "p.event",
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 |
wt |
the name of the weight for the integrated EL statistics:
|
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 |
Details
There are three options for the weight w_i:
(
wt = "p.event")
This default option is an objective weight,w_i=\frac{d_i}{n},which assigns weight proportional to the number of events
d_iat each observed uncensored timet_i. Herenis the total sample size.(
wt = "dF")
Inspired by the integral-type statistics considered in Barmi and McKeague (2013), another weigth function isw_i= \hat{F}(t_i)-\hat{F}(t_{i-1}),for
i=1,\ldots,m, where\hat{F}(t)=1-\hat{S}(t),\hat{S}(t)is the pooled KM estimator, andt_0 \equiv 0. This reduces to the objective weight when there is no censoring. The resultingI_ncan be seen as an empirical version of the expected negative two times log EL ratio underH_0.(
wt = "dt")
Inspired by the integral-type statistics considered in Pepe and Fleming (1989), another weight function isw_i= t_{i+1}-t_i,for
i=1,\ldots,m, wheret_{m+1} \equiv t_{m}. This gives more weight to the time intervals where there are fewer observed uncensored times, but can be affected by extreme observations.
Value
intELtest returns a intELtest object, a list with 15 elements:
-
callthe function call -
teststatthe resulting integrated EL statistics -
critvalthe critical value based on bootstrap -
pvaluethe p-value of the test -
formulathe value of the input argument of intELtest -
datathe value of the input argument of intELtest -
group_orderthe value of the input argument of intELtest -
t1the value of the input argument of intELtest -
t2the value of the input argument of intELtest -
sidedthe value of the input argument of intELtest -
nbootthe value of the input argument of intELtest -
wtthe value of the input argument of intELtest -
alphathe value of the input argument of intELtest -
seedthe value of the input argument of intELtest -
nlimitthe value of the input argument of intELtest
Methods defined for intELtest objects are provided for print and summary.
References
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).
M. S. Pepe and T. R. Fleming, "Weighted Kaplan-Meier Statistics: A Class of Distance Tests for Censored Survival Data," Biometrics, Vol. 45, No. 2, pp. 497-507 (1989). https://www.jstor.org/stable/2531492?seq=1#page_scan_tab_contents
H. E. Barmi and I.W. McKeague, "Empirical likelihood-based tests for stochastic ordering," Bernoulli, Vol. 19, No. 1, pp. 295-307 (2013). https://projecteuclid.org/euclid.bj/1358531751
See Also
hepatitis, supELtest, ptwiseELtest, nocrossings, print.intELtest, summary.intELtest
Examples
library(survELtest)
intELtest(survival::Surv(hepatitis$time, hepatitis$censor) ~ hepatitis$group)
## OUTPUT:
## Call:
## intELtest(formula = survival::Surv(hepatitis$time, hepatitis$censor) ~
## hepatitis$group)
##
## Two-sided integrated EL test statistic = 1.42, p = 0.007