Description Usage Arguments Value
View source: R/makeIncomeStrata.R
Cuts a continuous income variable into equal-sized bins
1 | makeIncomeStrata(x, n_strata = 10, w = NULL)
|
x |
A vector of incomes |
n_strata |
A numeric value indicating how many bins will be created |
w |
(optional) A vector of sample weights |
Returns a numeric vector with indicating which income strata each observation belongs to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.