The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Median number of years of schooling completed (Replication from table 2.17, India National report)
Median number of years of schooling completed [message #18180] Mon, 07 October 2019 08:10 Go to next message
biswaj41_ssf is currently offline  biswaj41_ssf
Messages: 7
Registered: May 2019
Member
I want to replicate the Median number of years of schooling completed (from table 2.17, India National Report). I am using following STATA code but unable to get exact value reported in the national report.

tabstat hv108 [aweight=iwt] if hv103 == 1 & (hv105 >=10 & hv105 <=14) & (hv108 >= 0 & hv108 <=20), statistics(mean p50) by (hv104) format(%10.2fc)


Any help in this regard would be highly appreciated. Thanks!
Re: Median number of years of schooling completed [message #18257 is a reply to message #18180] Mon, 21 October 2019 13:24 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is a response from DHS Senior Analysis & Research Manager, Shireen Assaf:

You can find code to compute the median year of education on or DHS GitHub Site (https://github.com/DHSProgram). The direct link to the code for this indicator is: https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap03_RC/RC_CHAR.do

The variable name in the do file is rc_edu_median.

You need to use the IR or MR file for this indicator. I see you were using the PR file. For this indicator and many others, SPSS and Stata code will be provided on GitHub. We now have more than half of the indicators coded.

Please try running this code and let us know if you have any other questions.

Thank you.
Previous Topic: Contraceptive Prevalence Rate
Next Topic: ICDS pregnancy benefits coverage_ Mismatch with State reports
Goto Forum:
  


Current Time: Sat Nov 30 12:24:26 Coordinated Universal Time 2024