Description Usage Arguments Value
View source: R/cross_validation.r
MAIN cross validation function. Includes performance assessment. Runs and assesses crossvalidation.
1 2 | cross_assess_wrapper(data, formula, resp, family, K, model,
cv_function = cross_valid_kfold, N = 1)
|
data, |
a data.frame containing response and observations variables used in the formula. |
formula, |
relation of response ~ observation to be examined. |
resp, |
a character vector of the names of dependent/response variables in df |
family, |
a character string indicating the family associated with the submitted model c('gaussian','binomial','poisson'...) |
K, |
a numeric variable indicating the number of folds for the k-fold validation |
model, |
a model associated for testing the variables c(glm,lm) |
cv_function, |
a crossvalidation function with the same inputs/outputs as cross_valid_kfold |
N, |
a numeric value indicating the number of times to run cross-validation |
list of performance assessments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.