Description Usage Arguments Value
Computes the mean income for a strata defined by a lower bound and an upper bound in the ordered cumulative income distribution
1 | meanByStrata(x, lowerBound = 0, upperBound = 1, w = NULL)
|
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 |
Returns the mean (a numeric value) within the strata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.