The function provides 3 tests for comparing models estimated from fitCox function. The tests are: Likelihood Ratio Test, Wald Test and Logrank Test.

testCox(fitCox)

Arguments

fitCox

a result of function fitCox.

Value

a data.frame with p-values of 3 tests for each risk.

See also

fitCox

Examples

fitC <- fitCox(time = LUAD$time, risk = LUAD$event, group = LUAD$gender, cens = "alive") testCox(fitC)
#> death new_tumor #> Likelihood ratio test 0.76 0.99 #> Wald test 0.76 0.99 #> Logrank test 0.76 0.99