Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Analysis on subset of Demographic and Health Survey (DHS) data


From   Sergiy Radyakin <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Analysis on subset of Demographic and Health Survey (DHS) data
Date   Mon, 28 Oct 2013 12:55:06 -0400

French,

the data is usually processed for several weeks or even months. Not
all reports are produced simultaneously, (as described here:
http://www.measuredhs.com/data/Data-Processing.cfm) and in some cases
the problems are uncovered, which may necessitate revision of data
files. According to this second source:
http://www.nbs.go.tz/tnada/index.php/catalog/12/datafile/F7
the data file of "children recode" contains indeed 8023 children,
which is what you have in your sample. It is the most straightforward
solution to contact Macro International (measuredhs.com) to ask
whether there were any revisions to the data and what were the reasons
for them. And even if the discrepancy is not caused by the revisions
to data, but e.g. to the way the data is filtered in your program
(which I don't see happening, as you simply load the data) they would
be able to figure that out. So don't hesitate and give them a call.

Best, Sergiy Radyakin

On Sat, Oct 26, 2013 at 12:53 PM, french Smith <[email protected]> wrote:
> Dear STATA crowd,
>
> I wish to analyze the Demographic and Health Surveys (DHS) data on
> children under five.
>
> I have set up my analysis as follows, using at Tanzania DHS 2010 as a
> starting point. But I have two questions:
>
> 1. Why do I have 8,023 cases not the 8,081 that the report (the report
> and dataset are available at
> http://www.measuredhs.com/what-we-do/survey/survey-display-345.cfm)
> says exit?
>
> 2. How do I restrict the analysis to V465, which was a question asked
> only of respondents with a youngest child under five living with them?
>
> Maybe questions, sorry, but my STATA mind needs jogging!
>
> Thanks!
>
> French
>
>
>
> set mem 450m
>
>
>
> set matsize 800
>
>
>
> use TZKR62DT/TZKR62FL.DTA
>
>
>
> *v022 is sample stratum number
>
> gen stratid = v022
>
>
>
> *v021 is PSU
>
> gen psu = v021
>
>
>
> *v005 is sample weight
>
> gen weight = v005/1000000
>
>
>
> svyset psu [pw=weight], strata(stratid)
>
>
>
> *Just to compare totals. Should get 8,081 for Tanzania DHS 2010 not 8,023!
>
> tab stratid
>
>
>
> *keep if complete response
>
> keep if v015==1
>
>
>
> *keep if child lives with respondent. But this command isn’t recognized!
>
> keep if B9==0
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index