Create older people indicators dataframe for income from survey data collected using the standard RAM-OP questionnaire.
Source:R/01-opIndicators.R
create_op_income.Rd
Create older people indicators dataframe for income from survey data collected using the standard RAM-OP questionnaire.
Income and income sources
M1
Has a personal income
M2A
Agriculture / fishing / livestock
M2B
Wages / salary
M2C
Sale of charcoal / bricks / &c.
M2D
Trading (e.g. market or shop)
M2E
Investments
M2F
Spending savings / sale of assets
M2G
Charity
M2H
Cash transfer / Social security
M2I
Other
Examples
# Create income indicators dataset from RAM-OP survey data collected from
# Addis Ababa, Ethiopia
create_op_income(testSVY)
#> # A tibble: 192 × 13
#> psu sex1 sex2 M1 M2A M2B M2C M2D M2E M2F M2G M2H M2I
#> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 201 0 1 1 1 0 0 0 0 0 0 1 0
#> 2 201 1 0 1 1 0 0 0 0 0 0 1 0
#> 3 201 1 0 1 1 1 1 0 0 0 0 0 0
#> 4 201 0 1 1 1 1 0 1 0 0 0 0 0
#> 5 201 0 1 1 1 1 0 1 0 0 0 1 0
#> 6 201 1 0 1 0 0 0 0 0 0 0 1 0
#> 7 201 1 0 1 1 0 0 0 0 0 0 1 0
#> 8 201 0 1 0 0 0 0 0 0 0 0 0 0
#> 9 201 1 0 0 0 0 0 0 0 0 0 0 0
#> 10 201 0 1 0 0 0 0 0 0 0 0 0 0
#> # ℹ 182 more rows