Description Usage Arguments Value
Computes the income share of a strata defined by a lower bound and an upper bound in the ordered cumulative income distribution
1 | shareByStrata(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 income share (a numeric value) of the strata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.