dhsprogram / dhs-indicators-stata Goto Github PK
View Code? Open in Web Editor NEWStata code to produce Demographic and Health Survey Indicators
Stata code to produce Demographic and Health Survey Indicators
Hello everyone,
does someone know where I could find a R or Stata code (or maybe any other guideline with e.g. QGIS) that gives me direction on how to merge the GPS data with the individual survey data?
thank you.
Dear Programmers
This forum is really helpful and provided great help. Many Many thanks for this open-source platform.
I have two questions regarding Contraceptive Discontinuation Rates.
line 394 putexcel B3:Jrow', nformat(number_d2) line 395 putexcel K3:L
row', nformat(number)
putexcel B3:J`row', nformat(number_d2)
option nformat() not allowed
r(198);
Please help me on how to handle this.
2). I also want to calculate the discontinuation rates by background characteristics, such as subnational level, education or wealth status.
I have tried a very simple way as to:
keep if v101==1, for subnational level
keep if v106==1, for no education, etc.
Is there any systematic way to calculate rates by showing al labels at once.
Thank you, Asi
Hello, I want to calculate the underweight status as per the child's living arrangements. can anyone please help me to match this with the DHS-India report
gen Child_liv_arr=.
replace Child_liv_arr=1 if hv111==1 & hv113==1 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=2 if hv111==1 & hv113==0 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=3 if hv111==0 & hv113==1 & (hv102 == 1 & hv105 < 18)
replace Child_liv_arr=4 if hv111==0 & hv113==0 & (hv102 == 0 & hv105 < 18)
label define Child_liv_arr 1"Living both Parents" 2"Living with Mother (not father)" 3"Living with Father (not mother)" 4"Living with neither parent", replace
label values Child_liv_arr Child_liv_arr
tab Child_liv_arr underweight [iw=wt], r nof
The variables created using the Stata command given in DHS-Indicators-Stata/Chap11_NT** are not matching with the report of the government of India (Report link: https://dhsprogram.com/pubs/pdf/FR375/FR375.pdf). The codes give correct values for stunted, wasted, and underweight parameters but do not give correct values for anaemia parameters, like any anaemia. Please suggest the correct Stata code for anaemia parameters.
Thank you.
Dear Author
It is a great help for the programmers who are currently working on DHS data. I am working with Pakistan latest PDHS 2017-18 data, to calculate the contraception discontinuation rates. When I have used the "IR" to create an event file in STATA, the following error is prompted. Please guide me how to solve this.
local vcal_len = strlen(vcal_`col1'[1])
vcal_ ambiguous abbreviation
DHS-Indicators-Stata/Chap08_CM/CM_CHILD.do
Line 257 in 334fea1
DHS-Indicators-Stata/Chap08_CM/CM_CHILD.do
Line 260 in 334fea1
I cannot figure out why these two lines have "age_int_at_death>`i'" rather than "age_int_at_death>=`i'"
Is this correct?
I am using PDHS to calculate PNC within 48 hours using KR file of PDHS. Several times I tried to calculate it but failed to match it with the PDHS report. Could anyone provide me with the syntax of PNC?
Hello,
Thank you for these useful codes. I noticed in chapter 11 the code says the data input for anaemia among men is from the MR file. However, I have checked the MR files of several countries and the variables for measuring anaemia is not present, e.g hb56, hv042 and hb55, are absent. The final report for the countries (e.g. Uganda 2016) shows anaemia among men was measured.
Can you verify if indeed the input data is MR or should be the PR file?
Thank you.
Hi, when can we expect the updated codes to compute perinatal mortality?
Hello, I am working on Discontinuation rate for India and running the whole code provided by DHS. While running the code I am getting the error variable V4 not found. Please help regrading this.
I have tried many times to compute previous pregnancy interval so that i may link with stillbirths (Table no: 7.5 {NFHS-4 National report}).
Please tell me how to create previous pregnancy interval?
@shireen122 @DHSProgram @courtneykirsten
There is a wrong specification of 'inrange' in line 452, preventing the code from running.
Hello,
I believe there is an error in the coding under ch13 men nutrition. When you specify
//Any anemia
gen nt_mn_any_anem=0
replace nt_mn_any_anem=1 if hb56<130
replace nt_mn_any_anem=. if hv103==0 | hv042!=1 | hb55!=0
label values nt_mn_any_anem yesno
label var nt_mn_any_anem "Any anemia - men"
using the MR data, state indicates the hb56 does not exist. To verify I check the MR data and it does not exist.
One plausible reason is that anaemia information wasn't collected for the countries I am working with or discontinued in the most current DHS for countries in SSA.
Please verify and put a note to warn or explain this issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.