The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Coding missing or dots (.) in STATA
Re: Coding missing or dots (.) in STATA [message #20381 is a reply to message #20379] Mon, 26 October 2020 13:59 Go to previous messageGo to previous message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

The code (.=".") is not correct. If you meant (.=.) this actually would not do anything in your code. Missing values in DHS data are coded as 9 or 99 or 999 depending on the variable so you would use (9=. ). You do not attach a label to dots.

For cross-tabulation and regression models, the missing would be automatically excluded when running these tests in Stata. You would of course need to use weights and account for sample survey design for any statistical analysis using the svy commands in Stata.

Good luck.

Shireen
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Who Provide the Delivery Care
Next Topic: Place of Death of Children Or Neonates
Goto Forum:
  


Current Time: Tue Jul 9 09:17:15 Coordinated Universal Time 2024