The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » NFHS3 - Weights and Survey command
Re: NFHS3 - Weights and Survey command [message #8323 is a reply to message #8321] Thu, 08 October 2015 08:02 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3119
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


As you may know, "_n", or "underscore n", is assigned by Stata to be the ordinal number of the case in the file you are currently using. That is, if you have N cases, then the first case has _n=1, the second case has _n=2, the last case has _n=N, etc. For most purposes, if you want to use or save that number, you have to give it another name, for example with "gen id=_n".

What you want in that position of the svyset command is the cluster variable. You can use v001 or v021 for that purpose. They are always (so far as I know) exactly the same. That's how to include the cluster adjustment.

Thus, instead of "svyset _n [pweight=v005], vce(linearized) singleunit(missing)", you probably want "svyset v001 [pweight=v005], vce(linearized) singleunit(missing)".
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Maratha & Mahar caste codes (NFHS 1, 1992-93, India)
Next Topic: Occupation codes, NFHS 1 (India), 1992-93
Goto Forum:
  


Current Time: Wed Jul 31 00:23:46 Coordinated Universal Time 2024