get.pval {bigtcr} | R Documentation |
Compare the CCIF of different failure typess by applying the technique of
permutation test. See bigtcr-package
.
get.pval(obs.y, event, tau = Inf, comp.event = c(1, 2), np = 1000, Kt = function(x) { 1 })
obs.y |
Y: time to failure events or censoring |
event |
0: censored; 1, … J: type of failure events |
tau |
Conditioning time τ under which the CCIF is defined |
comp.event |
Failure events for CCIF comparison |
np |
Number of permutations |
Kt |
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: G_j = G_k = … = G_l.
pval <- get.pval(pancancer$obs.y, pancancer$min.type, tau=120, comp.event=c(1,2), np=20);