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 #20379 is a reply to message #20371] Mon, 26 October 2020 13:41 Go to previous messageGo to previous message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear Shireen,

Thanks for your reply.

My 2nd Question rephrase; If I have a variable in DHS Stata file eg "Vaccine status" and it is binary coded yes=1 & no=0 along with some missing observations for this variable.

I am recording it as follow;

recode vaccine-status (1=1 "received-Vac") (0=0 "not-vac") (.="."), gen(vac)

What I have an understanding that coding dot(.) as "." does not allow the stata to assign a large value to miss observations (.), thus all-new variables that are re-coded in which dots (.) are given code "." (dot in inverted comas) gives unbiased estimates when used for cross-tabulations and building regression models.

Best Regards

Dr. Hussain




 
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: Sun Dec 22 21:51:08 Coordinated Universal Time 2024