Learn R Programming

measures

Package that provides the biggest amount of statistical measures in the whole R world!

Includes measures of regression, (multiclass) classification, clustering, survival and multilabel classification.

It is based on measures of mlr.

Installation

The development version

devtools::install_github("mlr-org/measures")

The available measures can be looked up by

listAllMeasures()
function_namedescriptiontask
SSESum of squared errorsregression
MSEMean of squared errorsregression
RMSERoot mean squared errorregression
MEDSEMedian of squared errorsregression
SAESum of absolute errorsregression
MAEMean of absolute errorsregression
MEDAEMedian of absolute errorsregression
RSQCoefficient of determinationregression
EXPVARExplained varianceregression
ARSQAdjusted coefficient of determinationregression
RRSERoot relative squared errorregression
RAERelative absolute errorregression
MAPEMean absolute percentage errorregression
MSLEMean squared logarithmic errorregression
RMSLERoot mean squared logarithmic errorregression
KendallTauKendall's tauregression
SpearmanRhoSpearman's rhoregression
AUCArea under the curvebinary classification
BrierBrier scorebinary classification
BrierScaledBrier scaledbinary classification
BACBalanced accuracybinary classification
TPTrue positivesbinary classification
TNTrue negativesbinary classification
FPFalse positivesbinary classification
FNFalse negativesbinary classification
TPRTrue positive ratebinary classification
TNRTrue negative ratebinary classification
FPRFalse positive ratebinary classification
FNRFalse negative ratebinary classification
PPVPositive predictive valuebinary classification
NPVNegative predictive valuebinary classification
FDRFalse discovery ratebinary classification
MCCMatthews correlation coefficientbinary classification
F1F1 measurebinary classification
GMEANG-meanbinary classification
GPRGeometric mean of precision and recall.binary classification
MMCEMean misclassification errormulticlass classification
ACCAccuracymulticlass classification
BERBalanced error ratemulticlass classification
multiclass.AUNUAverage 1 vs. rest multiclass AUCmulticlass classification
multiclass.AUNPWeighted average 1 vs. rest multiclass AUCmulticlass classification
multiclass.AU1UAverage 1 vs. 1 multiclass AUCmulticlass classification
multiclass.AU1PWeighted average 1 vs. 1 multiclass AUCmulticlass classification
multiclass.BrierMulticlass Brier scoremulticlass classification
LoglossLogarithmic lossmulticlass classification
SSRSpherical Scoring Rulemulticlass classification
QSRQuadratic Scoring Rulemulticlass classification
LSRLogarithmic Scoring Rulemulticlass classification
KAPPACohen's kappamulticlass classification
WKAPPAMean quadratic weighted kappamulticlass classification
MultilabelHamlossHamming lossmultilabel
MultilabelSubset01Subset-0-1 lossmultilabel
MultilabelF1F1 measure (multilabel)multilabel
MultilabelACCAccuracy (multilabel)multilabel
MultilabelPPVPositive predictive value (multilabel)multilabel
MultilabelTPRTPR (multilabel)multilabel

Copy Link

Version

Install

install.packages('measures')

Monthly Downloads

1,540

Version

0.3

License

GPL-3

Maintainer

Last Published

January 19th, 2021

Functions in measures (0.3)

ARSQ

Adjusted coefficient of determination
ACC

Accuracy
FDR

False discovery rate
F1

F1 measure
BrierScaled

Brier scaled
Logloss

Logarithmic loss
LSR

Logarithmic Scoring Rule
EXPVAR

Explained variance
GMEAN

G-mean
MAE

Mean of absolute errors
MAPE

Mean absolute percentage error
BER

Balanced error rate
MultilabelHamloss

Hamming loss
GPR

Geometric mean of precision and recall.
MEDSE

Median of squared errors
FN

False negatives
FNR

False negative rate
BAC

Balanced accuracy
MultilabelF1

F1 measure (multilabel)
AUC

Area under the curve
MultilabelACC

Accuracy (multilabel)
MultilabelSubset01

Subset-0-1 loss
MultilabelPPV

Positive predictive value (multilabel)
FP

False positives
FPR

False positive rate
multiclass.AUNU

Average 1 vs. rest multiclass AUC
Brier

Brier score
RRSE

Root relative squared error
multiclass.AUNP

Weighted average 1 vs. rest multiclass AUC
MCC

Matthews correlation coefficient
MMCE

Mean misclassification error
MEDAE

Median of absolute errors
NPV

Negative predictive value
TP

True positives
KAPPA

Cohen's kappa
MSE

Mean of squared errors
WKAPPA

Mean quadratic weighted kappa
listAllMeasures

List all measures
RSQ

Coefficient of determination
PPV

Positive predictive value
RMSLE

Root mean squared logarithmic error
KendallTau

Kendall's tau
TPR

True positive rate
RMSE

Root mean squared error
MSLE

Mean squared logarithmic error
SSR

Spherical Scoring Rule
multiclass.Brier

Multiclass Brier score
MultilabelTPR

TPR (multilabel)
SpearmanRho

Spearman's rho
SAE

Sum of absolute errors
QSR

Quadratic Scoring Rule
RAE

Relative absolute error
multiclass.AU1P

Weighted average 1 vs. 1 multiclass AUC
TNR

True negative rate
TN

True negatives
SSE

Sum of squared errors
multiclass.AU1U

Average 1 vs. 1 multiclass AUC