| ptwiseELtest {survELtest} | R Documentation |
The pointwise EL testing
Description
ptwiseELtest gives pointwise EL testing to compare the survival curves at
each time point.
Usage
ptwiseELtest(
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
ptwiseELtest returns a ptwiseELtest object, a list with 12 elements:
-
callthe function call -
result_dataframea dataframe withtime_ptsin the first column,decisionin the second column,stat_ptwisein the third column andcritval_ptwisein the fourth column.-
time_ptsa vector containing the observed uncensored time points at which the Kaplan—Meier estimate is positive and less than1for each sample. -
decisiona vector containing the decisions of the pointwise EL tests attime_pts. The decision at each oftime_ptsis1for rejection of the null hypothesis that the survival functions are the same at the specific time point, and0otherwise. -
stat_ptwisea vector containing the pointwise EL statistics attime_pts. -
critval_ptwisea vector containing the critical values for pointwise EL testing attime_pts.
-
-
formulathe value of the input argument of ptwiseELtest -
datathe value of the input argument of ptwiseELtest -
group_orderthe value of the input argument of ptwiseELtest -
t1the value of the input argument of ptwiseELtest -
t2the value of the input argument of ptwiseELtest -
sidedthe value of the input argument of ptwiseELtest -
nbootthe value of the input argument of ptwiseELtest -
alphathe value of the input argument of ptwiseELtest -
seedthe value of the input argument of ptwiseELtest -
nlimitthe value of the input argument of ptwiseELtest
Methods defined for ptwiseELtest objects are provided for print and summary.
See Also
hepatitis, intELtest, supELtest, nocrossings, print.ptwiseELtest, summary.ptwiseELtest
Examples
library(survELtest)
ptwiseELtest(survival::Surv(hepatitis$time, hepatitis$censor)~
hepatitis$group, sided = 1)
## OUTPUT:
## Call:
## ptwiseELtest(formula = survival::Surv(hepatitis$time, hepatitis$censor) ~
## hepatitis$group, sided = 1)
##
## Range of time_pts is from 5.2 to 153.1
## 30 out of 45 decisions are 1, the other 15 decisions are 0
## -----
## Summary of stat_ptwise:
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.000 2.293 3.694 4.263 6.288 10.360
## -----
## Summary of critval_ptwise:
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2.117 2.346 2.483 2.509 2.669 2.951