The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » KDHS 2014 : Table 14.10.1 Health insurance coverage: Women
KDHS 2014 : Table 14.10.1 Health insurance coverage: Women [message #28057] Mon, 06 November 2023 12:53 Go to next message
sokiya is currently offline  sokiya
Messages: 76
Registered: May 2017
Location: Nairobi
Senior Member
I am trying to replicate Table 14.10.1 Health insurance coverage: Women in KDHS 2014 main report using the syntax below that I got from DHS GitHub repo
use "KEIR71FL.dta", clear

*** Health insurance ***
* Note: The different types of health insurance can be country specific. Please check the v481* variables to see which ones you need.
* In addition, some surveys report this for all women/men and some report it among those that have heard of insurance. Please check what the population of interest is for reporting these indicators.
//Health insurance - Social security
gen rc_hins_ss = v481c==1
label var rc_hins_ss "Health insurance coverage - social security"

//Health insurance - Other employer-based insurance
gen rc_hins_empl = v481b==1
label var rc_hins_empl "Health insurance coverage - other employer-based insurance"

//Health insurance - Mutual Health Organization or community-based insurance
gen rc_hins_comm = v481a==1
label var rc_hins_comm "Health insurance coverage - mutual health org. or community-based insurance"

//Health insurance - Privately purchased commercial insurance
gen rc_hins_priv = v481d==1
label var rc_hins_priv "Health insurance coverage - privately purchased commercial insurance"

//Health insurance - Other
gen rc_hins_other=0
	foreach i in e f g h x {
	replace rc_hins_other=1 if v481`i'==1
	} 
label var rc_hins_other "Health insurance coverage - other type of insurance"

//Health insurance - Any
gen rc_hins_any=0
	foreach i in a b c d e f g h x {
	replace rc_hins_any=1 if v481`i'==1
	}
label var rc_hins_any "Have any health insurance"

ta rc_hins_any [iw=v005/1000000]

However, the result doesn't match what is in the report
Re: KDHS 2014 : Table 14.10.1 Health insurance coverage: Women [message #28060 is a reply to message #28057] Mon, 06 November 2023 16:02 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3043
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Tom Pullum:

The following Stata lines show how to construct the indicators for the columns of this table. You may not have realized that this is an example of multiple options: it is possible for a respondent to have more than one type of insurance. My n is low by 4 cases--for reasons unknown.

use " KEIR72FL.DTA", clear

tab1 v481*,m

* Sequence as in table 14.10.1

gen ins1=100*v481c if v481<.
gen ins2=100*v481b if v481<.
gen ins3=100*v481a if v481<.
gen ins4=100*v481d if v481<.
gen ins5=100*v481e if v481<.
gen ins6=100*v481x if v481<.

label variable ins1 "National"
label variable ins2 "Employer"
label variable ins3 "Mutual"
label variable ins4 "Private"
label variable ins5 "Pre-payment"
label variable ins6 "Other"

gen none=100
replace none=0 if v481==0

tabstat ins* none [fweight=v005], statistics(mean)
tab v025 if v481<. [iweight=v005/1000000]
Re: KDHS 2014 : Table 14.10.1 Health insurance coverage: Women [message #28067 is a reply to message #28060] Tue, 07 November 2023 11:56 Go to previous message
sokiya is currently offline  sokiya
Messages: 76
Registered: May 2017
Location: Nairobi
Senior Member
Thanks so much for the help. There should be a minor change for the variable none - it should be restricted to non-missing cases for v481
Previous Topic: Merging KR and PR files
Next Topic: Table 5.12 in KDHS 2022 Report
Goto Forum:
  


Current Time: Sat Apr 27 08:20:51 Coordinated Universal Time 2024