logistic_val: Validation of logistic regression results with the combiation...

View source: R/logistic_val.R

logistic_valR Documentation

Validation of logistic regression results with the combiation of variables

Description

Validation of logistic regression results with the combiation of variables

Usage

logistic_val(
  data,
  outcome,
  vars,
  auc.cutoff = 0.65,
  n.aic = 10,
  n.bic = 10,
  fold = 10,
  repeats = 100,
  boot.repeat = 1000,
  maxvar = ceiling(min(table(data[[outcome]])) * 0.1) + 2
)

Arguments

data

a dataframe to be used

outcome

binary outcome variable

vars

predictor variables

auc.cutoff

cut-off value of AUC

n.aic

number of the combination to be showed (arranged by AIC values)

n.bic

number of the combination to be showed (arranged by BIC values)

fold

cross-validation fold number

repeats

cross-validation repeat number

boot.repeat

boot-strap repeat number

maxvar

maximum number of variables

Value

data.frame object


nephroj/medutils documentation built on Feb. 3, 2024, 8:33 a.m.