measure_catg_model: Measure the Performance of a Categorical Model

Description Usage Arguments Value

View source: R/measure-catg-model.R

Description

return a single row of descriptive statistics making it easier to asses models

Usage

1
measure_catg_model(model, testdata, depvar)

Arguments

model

a predictive model which predicts categories. Probably ought to be a caret model for now.

testdata

the data on which you which to test and predict

depvar

a vector of the dependent variable. Must be a factor with the same levels as what the model will predict.

Value

a one-row data frame with data about the model's accuracy including precision/recall stats and the Area Under the PR Curve.


crazybilly/mumodels documentation built on May 14, 2019, 11:31 a.m.