View source: R/cross_validation_functions.R
evaluate.results | R Documentation |
Get statistics for a single set of predictions.
evaluate.results(
y,
predict.data,
censor.vec = NULL,
trt.vec = NULL,
trtref = NULL,
type
)
y |
data frame of the response variable. |
predict.data |
output of prediction function from kfold.cv. |
censor.vec |
data frame indicating censoring for survival data. For binary or continuous data, set censor.vec <- NULL. |
trt.vec |
data frame indicating whether or not the patient was treated. For the pronostic case, set trt.vec <- NULL. |
trtref |
treatment reference. |
type |
data type - "c" - continuous , "b" - binary, "s" - time to event - default = "c". |
Get statistics for a single set of predictions.
a list containing p-value and group statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.