The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Number of graduates in a household (NFHS-5)
Number of graduates in a household [message #26611] Sun, 09 April 2023 03:24 Go to next message
anand is currently offline  anand
Messages: 3
Registered: April 2023
Member
Hello DHS team,

I'm trying to get the "number of graduates in a household" using NFHS-5 data, categorised as "No Graduates", "1-2 graduates", ">2 graduates"
Here graduate means individuals with higher education.


I would be very grateful if anyone could help me in this regard.

Regards,
Re: Number of graduates in a household [message #26620 is a reply to message #26611] Mon, 10 April 2023 19:31 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3208
Registered: February 2013
Senior Member

Following is a response from Senior DHS staff member, Tom Pullum:

First, what individual-level variable are you using to determine whether an individual is or is not a graduate? There are several variables related to education.
Re: Number of graduates in a household [message #26621 is a reply to message #26620] Tue, 11 April 2023 02:44 Go to previous messageGo to next message
anand is currently offline  anand
Messages: 3
Registered: April 2023
Member
Hi,

I'm using variable h108* "Education completed in single years" from HR file (NFHS-5)


Thank you
Re: Number of graduates in a household [message #26624 is a reply to message #26621] Tue, 11 April 2023 09:21 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3208
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Tom Pullum:

The following Stata program will calculate this, using the HR file. I don't know how many years would define "graduate", so I illustrate with 12 (that is, 12 or more completed years of schooling). You can alter that. You might want to take into account the size of the household (hv009) and whether the person is de jure, that is, a usual member of the household.

If this were done with the PR file, you would use the "egen" commands.

use "...IAHR7DFL.DTA" 

* Calculate the number of household members who have Y or more years of schooling
* You may want to restrict to de facto or de jure household members

* Use hv108, completed number of years of schooling 
* Special codes for hv108: 97=inconsistent and 98=DK

* Specify the threshold as a scalar, for example sY=12
scalar sY=12

* Initialize the household-level variable
gen ngraduates=0

* Remove leading 0's in the subscripts
rename *_0* *_* 

* Households have up to 35 members. Loop through all of them.
quietly forvalues li=1/35 {
replace ngraduates=ngraduates+1 if hv108_`li'>=sY & hv108_`li'<97
}

tab ngraduates
Re: Number of graduates in a household [message #26627 is a reply to message #26611] Tue, 11 April 2023 09:40 Go to previous message
anand is currently offline  anand
Messages: 3
Registered: April 2023
Member
Thank you so much for your help Tom.
Previous Topic: Mother Tongue/Native Tongue of Respondent
Next Topic: Diet data in NFHS India
Goto Forum:
  


Current Time: Wed Dec 11 18:03:39 Coordinated Universal Time 2024