Learn R Programming

cr17 (version 0.1.0)

testCox: Testing differences between groups in Cox models.

Description

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

Usage

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

Run this code
# NOT RUN {
fitC <- fitCox(time = LUAD$time, risk = LUAD$event, group = LUAD$gender, cens = "alive")
testCox(fitC)
# }

Run the code above in your browser using DataLab