l.cv: List - Repeated CV - GLM

Description Usage Arguments Value

View source: R/l.cv.R

Description

List - Repeated CV - GLM

Usage

1
2
3
4
5
6
7
8
9
l.cv(
  exprs,
  df,
  family,
  thresh = FALSE,
  statistic = "Accuracy",
  number = 10,
  repeats = 10
)

Arguments

exprs

List of GLM formulas.

df

Data.frame.

family

Object : a description of the error distribution.

thresh

If TRUE, an optimal threshold is found based on the 'statistic' criterion.

statistic

A character indicating which statistic to maximize. Default is "Accuracy". You can use c('Sensitivity', 'Specificity', 'Pos Pred Value', 'Neg Pred Value', 'Precision', 'Accuracy', 'Balanced Accuracy', 'F1', 'Detection Rate', 'Detection Prevalence', 'Prevalence', 'Recall', 'Kappa', 'J', 'Dist').

number

The number of folds.

repeats

The number of complete sets of folds to compute.

Value

Different accuracy measures for all formulas in 'exprs'.


anthonyyazdani/OOS documentation built on Sept. 5, 2020, 12:54 a.m.