Description Usage Arguments Value Examples
View source: R/validationPlot.R
Validation plot
1 2 | ValidationPlot(cvList, validationMethod, evaluationFunctions = NULL,
legendPosition = NULL, animate = FALSE)
|
train |
a data.frame which includes follow up time, event, and covariates. In a k-fold cross validation this is a sample proportion (k-1)/k of the original data set. |
test |
a data.frame which includes follow up time, event, and covariates. In a k-fold cross validation this is a sample proportion 1/k of the original data set. |
FittingFunction |
a function which returns list of survival probabilities of individuals where each element in the list represent a specific time point. |
covariates |
character vector specifying the names of covariates |
time |
a numeric value specifying at what time survival probability is to be calculated. |
by |
a numeric value specifying the spacing between values in the proportion vector with lower and upper values from xlim |
The function returns a data frame of the proportion that had an event for a given survival probability including confidence intervals
1 | ROC(train)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.