cv: Repeated CV - GLM

Description Usage Arguments Value

View source: R/cv.R

Description

Repeated CV - GLM

Usage

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

Arguments

expr

GLM formula.

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.


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