deltaprob: Mean difference of a discrete random variable

Description Usage Arguments Value Examples

View source: R/deltaprob.R

Description

Compute the Gini mean difference of a discrete distribution

Usage

1
deltaprob(prob)

Arguments

prob

Vector of the probability distribution

Value

Numeric value of the Gini mean difference of the input probability distribution, computed according to the de Finetti-Paciello formulation.

Examples

1
2
prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24)
deltaprob(prob)

CUB documentation built on March 31, 2020, 5:14 p.m.