The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » data mismatches
Re: data mismatches [message #3539 is a reply to message #3182] Thu, 01 January 2015 22:08 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
A couple of notes:
1) Your results are weighted, but Stata reports the unweighted number of observations. That is not a problem.
2) You shouldn't use importance weights (iw) with a logistic regression, but rather population weights (pw).
3) In fact, rather than using the weights on the logistic command you should use svy commands that take into account not only the weighting but the stratification of the sample, and will give correct significance values for the stratified sample.

To do this, use:
gen wt=d005/1000000
svyset v021 [pw=wt], strata(v023)
svy: logistic victim v012

This also reports the weighted number of cases (see Population size) as well as the unweighted number of observations.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Education, Turkey DHS
Next Topic: Education: inconsistency b/w HV and HA variables
Goto Forum:
  


Current Time: Mon Jan 27 11:03:47 Coordinated Universal Time 2025