xval.glm: Run X-val on a set of glms

Description Usage Arguments Value

View source: R/xval.glm.R

Description

Run X-val on a set of glms

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
xval.glm(
  data,
  models,
  glm.family = gaussian,
  folds = 10,
  repeats = 200,
  loss = NULL,
  numCore = NULL,
  plots = T,
  gray = F,
  seed = NULL,
  showConsoleOutput = T
)

Arguments

data

data.frame containing the data

models

list of model formulas, each list entry is used as a

glm.family

name of the glm family (see glm() for details), default is gaussian

folds

number of folds (default = 10)

repeats

number of repeats (default = 200)

loss

loss function for the GLM (default = NULL equals RMSE)

numCore

number of cores for use with parallel (default = NULL, equals no parallelization)

plots

output fancy plots with results

gray

output greyscale plots (default = F)

seed

seed for the folds (default = NULL, seed will be random)

showConsoleOutput

show console output, set to FALSE to suppress all conole output (default = TRUE)

Value

object of class xval.glm


Github-MS/xvalglms documentation built on March 9, 2021, 12:12 a.m.