cross_assess_wrapper: cross_valid_kfold

Description Usage Arguments Value

View source: R/cross_validation.r

Description

MAIN cross validation function. Includes performance assessment. Runs and assesses crossvalidation.

Usage

1
2
cross_assess_wrapper(data, formula, resp, family, K, model,
  cv_function = cross_valid_kfold, N = 1)

Arguments

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

Value

list of performance assessments


LewisLabUCSD/RegressionModelPipeline documentation built on Jan. 11, 2021, 10:33 p.m.