Description Usage Arguments Value
Classifies variable between thresholds creating 3 groups: poor, vul, mid
1 2 | detect_poverty(.data, income_var, suffix = "", pov_line_1,
pov_line_2 = NULL)
|
.data |
data frame to perform calculations on. |
income_var |
variable to use for classification |
suffix |
to add to the neqyly created variables |
pov_line_1, pov_line_2 |
values to use as the povery lines. |
Same data frame with two or three extra columns. When the
pov_line_2
is NULL, data frame gains columns poor_suffix
,
which is 1 for value of the income_var
below the poverty
line and mid_suffix
, wchih is the opposite to the first one.
When both povery lines are supplied, third variable mid_suffix
is created, which represents the values of the income_var
in
between two poverty lines.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.