probExtract: Extract probabilities from various types of R models used for...

Description Usage Arguments Details Value

Description

Extracts probabilities consistently for using in confusion matrix calculations

Usage

1
probExtract(mod, testdata = NULL)

Arguments

mod

an R model object either of glm, caret, or caretEnsemble class

testdata

a list with two elements, a preds dataframe and a factor called class

Details

Only works for caretEnsemble, train, and glm objects currently.

Value

a dataframe with yhat, the inverse of yhat, and the outcome as a factor


jknowles/EWStools documentation built on May 19, 2019, 11:42 a.m.