Metrics (version 0.1.4)

MeanQuadraticWeightedKappa: Mean Quadratic Weighted Kappa

Description

MeanQuadraticWeightedKappa computes the mean quadratic weighted kappa, which can optionally be weighted

Usage

MeanQuadraticWeightedKappa(kappas, weights = rep(1, length(kappas)))

Arguments

kappas

A numeric vector of possible kappas.

weights

An optional numeric vector of ratings.

See Also

ScoreQuadraticWeightedKappa

Examples

Run this code
# NOT RUN {
kappas <- c(0.3 ,0.2, 0.2, 0.5, 0.1, 0.2)
weights <- c(1.0, 2.5, 1.0, 1.0, 2.0, 3.0)
MeanQuadraticWeightedKappa(kappas, weights)
# }

Run the code above in your browser using DataCamp Workspace