The censoring is such that if the ith observation fails at $x$, we only observe that $L[i] < x \le R[i]$. Data may be entered with "exact" values, i.e., $L[i] = x = R[i]$. In that case the $L[i]$ is changed internally to $L*[i]$ which is the next lower of any of the observed endpoints (unless $R[i] = 0$ then an error results).
The function requires a previously calculated survival
curve (see icfit
).
ictest(L, R, S, group, model, type = "permutation", fuzz , output.scores)
output.scores
= TRUE
outputs the scores in the output list. Default is output.scores
= FALSE
We present two generalizations of the logrank
test. The method of Sun (1996) is more difficult to
calculate and has no theoretical advantages
of which I am aware. The grouped proportional
hazards model of Finkelstein (1996) is recommended.
Note that when icfit
and ictest
are used on right-censored
data, because the method of estimating
variance is different, even Sun's method does not
produce exactly the standard logrank test results.
There are some typos in Appendix II of Fay (1999). See the S code for the corrections.
Fay, M. P. (1999), "Comparing Several Score Tests for Interval Censored Data," Statistics in Medicine, 18: 273-285.
Finkelstein, D. M. (1986), "A Proportional Hazards Model for Interval Censored Failure Time Data," Biometrics, 42: 845-854.
Sun, J. (1996), "A Non-parametric Test for Interval Censored Failure Time Data With Applications to AIDS Studies," Statistics in Medicine, 15: 1387-1395.
icfit
,icplot
## Perform a logrank-type test using the observed information variance.
## need data set for this example
# out<-icfit(left,right)
# ictest(left,right,out$surv,group,out$time,model = "GPH",type = "score")
#
## Perform a Wilcoxon rank sum-type test using asymptotic permutation variance.
#
# ictest(left,right,out$surv,group,out$time, model = "PO",type = "permutation")
Run the code above in your browser using DataLab