cohens_kappa: cohens_kappa

View source: R/metrics.R

cohens_kappaR Documentation

cohens_kappa

Description

‘cohens_kappa()' is a metric scoring function that returns the Cohen’s Kappa statistic. Not an exported function.

Usage

cohens_kappa(TP, TN, FP, FN)

Arguments

TP

- [scalar] True Positives

TN

- [scalar] True Negatives

FP

- [scalar] False Positives

FN

- [scalar] False Negatives

Details

This function takes integer counts for True Positive ‘TP', True Negative 'TN', False Positive 'FP', and False Negative 'FN' values and returns the Cohen’s Kappa. This statistic measure the agreement between observations and predictions. See: https://en.wikipedia.org/wiki/Cohen

Value

[scalar] Cohen's Kappa statistic


mrecos/DistRegLMERR documentation built on April 9, 2022, 5:10 p.m.