The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Svy command, r(2000) error message, NFHS-3 India
Re: Svy command, r(2000) error message, NFHS-3 India [message #10595 is a reply to message #10576] Mon, 15 August 2016 08:30 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3151
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


I don't know what variable you are using for "wave" but I will give it the name "wave", and assume it has the values 1, 2, and 3.

I suggest the following lines in the combined file:

gen v021_rev=v021
replace v021_rev=s021 if wave==3
egen cluster=group(wave v021)

You can then use "cluster" as the psu in the svyset command. It will not matter that the numbering scheme is different in the three waves, so long as they are all numeric.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: weighting for Services Provision Assessment data
Next Topic: Performing a manual backward stepwise logistic regression in Stata
Goto Forum:
  


Current Time: Mon Sep 2 05:20:34 Coordinated Universal Time 2024