Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Query for OR calculation


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   st: Re: Query for OR calculation
Date   Fri, 20 Apr 2007 13:06:07 -0400

You can use tabi:

tabi 33 8 / 8 10, replace
expand pop
rename row visited
rename col reintegrate

You may want to recode the variables since the natural coding here will be 1=yes, 2=no

Michael Blasnik

----- Original Message ----- From: "Todd Swarthout" <[email protected]>
To: <[email protected]>
Sent: Friday, April 20, 2007 11:53 AM
Subject: st: Query for OR calculation



Hello. I have what I assume to be a relatively simple question...

For an HIV programme in Benin we had 59 persons lost to follow-up.
We were able to do home visits for 41 persons, after which 33 returned to clinical care.
Of those 18 we were not able to visit, only 8 returned to clinical care.

What is the most efficient way to create a mini database to define the odds ratio...the odds of returning for clinical care after a home visit as compared to those not visited. I could simply go into the Data Editor of a blank database and enter the numbers...but Id like to type in the data.


Visited 41 (33 reintegrated)
Not Visited 18 (8 reintegrated)
Total 59
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index