fastlogranktest (version 0.1.0)

multi_logrank_test: Calculate multiple Log-Rank-Tests very fast

Description

Calculate multiple Log-Rank-Tests very fast

Usage

multi_logrank_test(groupas, groupbs, groupacensoreds, groupbcensoreds,
  threadnumber = NULL)

Arguments

groupas

list of vectors of groupa's survival times

groupbs

list of vectors of groupb's survival times

groupacensoreds

list of vectors of censored information of groupa's survival times

groupbcensoreds

list of vectors of censored information of groupb's survival times

threadnumber

(optional) set the number of threads used for this function

Value

vector of p-values (same order as input)

Examples

Run this code
# NOT RUN {
T1 <- c(6, 6, 6, 6, 7, 9, 10, 10, 11, 13, 16, 17, 19, 20, 22, 23, 25, 32, 32, 34, 35)
E1 <- c(1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0)
T2 <- c(1, 1, 2, 2, 3, 4, 4, 5, 5, 8, 8, 8, 8, 11, 11, 12, 12, 15, 17, 22, 23)
E2 <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
t1s<-list(T1, T1, T1)
e1s<-list(E1, E1, E1)
t2s<-list(T2, T2, T2)
e2s<-list(E2, E2, E2)
multi_logrank_test(t1s,t2s,e1s,e2s)
#4.168809e-05 4.168809e-05 4.168809e-05
# }

Run the code above in your browser using DataLab