meanBystrata: Computes the mean income for a strata defined by a lower...

Description Usage Arguments Value

Description

Computes the mean income for a strata defined by a lower bound and an upper bound in the ordered cumulative income distribution

Usage

1
meanByStrata(x, lowerBound = 0, upperBound = 1, w = NULL)

Arguments

x

A vector of incomes

lowerBound

A value between 0 and 1, indicating the lower bound of the strata

upperBound

A value between 0 and 1, indicating the upper bound of the strata

w

(optional) A vector of sample weights

Value

Returns the mean (a numeric value) within the strata


antrologos/inequalityTools documentation built on May 23, 2021, 11:56 a.m.