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: 891
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: determinants of neonatal mortality
Goto Forum:
  


Current Time: Tue Nov 26 22:41:04 Coordinated Universal Time 2024