
Add Healthcare Expenditure Share of Income
Source:R/add_expenditure_healthcare_share_income.R
add_expenditure_healthcare_share_income.RdCalculates the share of infrequent healthcare expenditure relative to total household income, normalising both to the same recall period, and flags households with catastrophic health care spending.
This is a convenience wrapper around add_expenditure_type_share_income()
with fixed parameters for the health expenditure module: expenditure recall
period is 180 days (6 months), income recall period is 30 days, and the
catastrophic threshold is 0.25 (25%).
Prerequisite: run add_expenditure_type_zero_infreq() before calling this
function. cm_income_total must also be present in df, either directly
from the survey or via add_income_source_prop().
Usage
add_expenditure_healthcare_share_income(
df,
expenditure_type = "cm_expenditure_infrequent_health",
total_income = "cm_income_total"
)Value
A data frame with two additional columns:
cm_expenditure_infrequent_health_share_income: Recall-normalised health expenditure share of income;1for zero-income households with health expenditure above0;NAif income or expenditure isNA.cm_expenditure_infrequent_health_share_income_d:1Lif catastrophic (share >= 0.25),0Lif not (or for a zero-income household with zero health expenditure),NA_integer_if income or share isNA.
See also
Other expenditure_share_income:
add_expenditure_type_share_income(),
add_expenditure_water_share_income()
Examples
df <- data.frame(
cm_expenditure_infrequent_health = c(60, 0, 30),
cm_income_total = c(100, 200, 0)
)
add_expenditure_healthcare_share_income(df)
#> cm_expenditure_infrequent_health cm_income_total
#> 1 60 100
#> 2 0 200
#> 3 30 0
#> cm_expenditure_infrequent_health_share_income
#> 1 0.1
#> 2 0.0
#> 3 1.0
#> cm_expenditure_infrequent_health_share_income_d
#> 1 0
#> 2 0
#> 3 1