The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Working through Odds Ratios (problem in b6 and b7 variable in BR file)
Re: Working through Odds Ratios [message #29178 is a reply to message #29136] Fri, 03 May 2024 15:03 Go to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 938
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:
I entered the following two lines:
gen test=int((v008a-b18)/365.25)

correlate test b8
The correlation is exactly 1, so there is the kind of consistency you are looking for. I believe your problem was just that you used round() instead of int().
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Birth selection
Next Topic: Struggling finding cervical cancer variables
Goto Forum:
  


Current Time: Mon Apr 7 11:53:56 Coordinated Universal Time 2025