calcCrossValidMetrics: CALCULATE VALIDATION METRICS AND CONFUSION MATRIX

View source: R/crossValidation.R

calcCrossValidMetricsR Documentation

CALCULATE VALIDATION METRICS AND CONFUSION MATRIX

Description

to allow caching without digesting the large data table

Usage

calcCrossValidMetrics(
  samp,
  fullDT,
  origData,
  statsModel,
  origDataVars,
  level = NULL,
  cacheArgs = NULL
)

Arguments

samp

the sample number to pick to use as the test data set

fullDT

the full dataset (not necessarily the one used to fit statsModel, which could have been a subset (e.g. fewer columns))

origData

the data used to fit statsModel

statsModel

the fitted model

origDataVars

a character vector of the variables used in model fitting (including response variable and random effects.)

level

passed to gamlss:::predict

cacheArgs

a named list of arguments passed to Cache

Value

a list with 2 entries


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.