powered by
Compare the bivariate CCIF of different failure typess by applying the technique of permutation test. See bigtcr-package.
bigtcr-package
get.gap.pval(obs.y, event, v, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
\(Y\): time to failure events or censoring
0: censored; \(1, \ldots J\): type of failure events
Time to the first failure event (e.g. disease recurrence)
Conditioning time \(\tau\) under which the CCIF is defined
Failure events for CCIF comparison
Number of permutations
A weight function that takes one parameter \(t\) and return the weight for \(t\). Default weight function is constant \(1\)
P-value of the hypothesis test \(H_0: H_j = H_k = \ldots = H_l\).
# NOT RUN { gap.pval <- get.gap.pval(pancancer$obs.y, pancancer$min.type, pancancer$v, tau=120, comp.event=c(1,2), np=20); # }
Run the code above in your browser using DataLab