detect_poverty: Classifies variable between thresholds creating 3 groups:...

Description Usage Arguments Value

Description

Classifies variable between thresholds creating 3 groups: poor, vul, mid

Usage

1
2
detect_poverty(.data, income_var, suffix = "", pov_line_1,
  pov_line_2 = NULL)

Arguments

.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. pov_line_1 is required.

Value

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.


EBukin/lassopmm documentation built on June 12, 2019, 9:51 a.m.