mrIMLperformance: Wrapper to calculate performance metrics (Mathews correlation...

mrIMLperformanceR Documentation

Wrapper to calculate performance metrics (Mathews correlation coefficient, sensitivity and specificity) for each model for each response variable.

Description

Wrapper to calculate performance metrics (Mathews correlation coefficient, sensitivity and specificity) for each model for each response variable.

Usage

mrIMLperformance(yhats, Model, Y, mode = "regression")

Arguments

yhats

A list is the list generated by mrIMLpredicts

Model

A list the model used to generate the yhats object

Y

A dataframe is a response variable data set (species, SNPs etc).

mode

character'classification' or 'regression' i.e., is the generative model a regression or classification?

Details

Outputs a dataframe of commonly used metric that can be used to compare model performance of classification models. Performance metrics are based on testing data. But MCC is useful (higher numbers = better fit)

Examples

## Not run: 
ModelPerf <- mrIMLperformance(yhats, Model=model1, Y=Y) 
## End(Not run)


nfj1380/mrIML documentation built on May 17, 2024, 7:41 a.m.