pmut.gini: Calculate Model Prediction Gini with Standardization

Description Usage Arguments Value Examples

View source: R/pmut.gini.R

Description

This function calculates the standardized gini coefficient for model prediction.

Usage

1
pmut.gini(aa, pp, print = FALSE)

Arguments

aa

Vector of actuals, could be any value

pp

Vector of predictions, could be any value

print

Logical (defualt is FALSE), TRUE indicates printing the original gini before standardization

Value

A single numeric value for standardized gini

Examples

1
2
3
actuals = c(1,1,1,1,0,1,1,0,1,0,1,0,1,0,0,1,0,0,0,0)
predicts = rev(seq_along(actuals)); predicts[9:10] = mean(predicts[9:10])
pmut.gini(actuals, predicts, print=TRUE)

chengjunhou/pmut documentation built on May 23, 2019, 4:24 p.m.