Description Usage Arguments Value
View source: R/ValidationTest.R
This function compute the prognostic index PI^{D}
on the testing set D
using the regression coefficients and the optimal cutoff computed on the training set T
. Then, the kaplan-Meier curves are shown as resulting of the log-rank test between high- and low-risk group.
1 | ValidationTest(x, y, beta, opt.cutoff)
|
x |
input testing matrix |
y |
response variable, |
beta |
regression cofficients estimated on the training set |
opt.cutoff |
optimal cutoff selected adaptively on the training set |
The following objects are returned:
df |
data frame about sample, prognostic index, time, status and group risk on testing set |
p.value |
|
plots |
survival curves and distribution plot of prognostic index |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.