The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Difficulty analysing IR data for many countries
Re: Difficulty analysing IR data for many countries [message #1362 is a reply to message #1351] Mon, 17 February 2014 19:05 Go to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member


A couple possibilities:

1 - you need to create a new variable with PSU that is separate for each country/survey-round, same for strata. So, if Ghana has PSUs 1-90 and Lesotho has 1-28 (just made up numbers), you need to tell Stata that these are separate PSUs. You could do this by, say, generating a 2-digit number for each country, multiplying it by 1000, and adding on the PSU number (assuming never more than 3 digit PSU numbers - and something similar for strata).

2 - you say you defined it for each country - does that mean you re-did the svyset each time? Are you running the regressions separately? If you are running them separately, ignore (1) and try (3). If not, re-try (1) only once after all of your data is loaded.

3 - are you using some subsample, or trimming your sample extensively? You might try:

bysort strata: tab Y

and see if there are any strata with 1 ob.

Happy to hear back and offer any other thoughts if this doesn't work or get you on the right path. But my guess is it has something to do with your svyset, or you are using a small subsample (on purpose, or somehow accidentally for some particular country/region/urban (strata). Of course, I've been known to be wrong so....

 
Read Message
Read Message
Previous Topic: Pooled Datasets - Use of Svyset & regional controls
Next Topic: I need help on using select to reduce DHS variables
Goto Forum:
  


Current Time: Thu Nov 28 02:11:51 Coordinated Universal Time 2024