logrank_test

0th

Percentile

Calculate the Log-Rank-Test very fast

Calculate the Log-Rank-Test very fast

Usage
logrank_test(groupa, groupb, groupacensored, groupbcensored)
Arguments
groupa

vector of group a's survival times

groupb

vector of group b's survival times

groupacensored

vector of censored information of group a's survival times

groupbcensored

vector of censored information of group b's survival times

Value

p-value

Aliases
  • logrank_test
Examples
# 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)
logrank_test(T1,T2,E1,E2)
#4.168809e-05
# }
Documentation reproduced from package fastlogranktest, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.