HI, I am trying to run an EpiTable on some basic food exposure data where 1=Ate the food item, 2=did not eat food item. However when I run the EpiTable it is automatically assuming that the exposure variable is 2 (ie.e not eating food item). How can I change the exposure variable to 1?
----------------------------------------- ******************************************************************* ******* The information contained in the EMail and any attachments is confidential and intended solely and for the attention and use of the named addressee(s). It may not be disclosed to any other person without the express authority of the HPA, or the intended recipient, or both. If you are not the intended recipient, you must not disclose, copy, distribute or retain this message or any part of it. This footnote also confirms that this EMail has been swept for computer viruses, but please re-sweep any attachments before opening or saving. HTTP://www.HPA.org.uk ************************** ************************************************
Would it be practical to recode your data to 0 for didn't eat and 1 for ate?
As pointed out, recoding to 0,1 will work, since etab puts the higher value first based on the Analysis default. This is controlled by the SET TABLE REVERSE command. The default for this setting is ON.
So do this and you won't need to recode variables:
SET TABLE REVERSE=OFF
This applies to both outcome and exposure, on the assumption that your coding is consistent.
The Help file needs to be corrected (currently says 'set table rotate')
Jamie Hockin Public Health Agency of Canada
epidata-list@lists.umanitoba.ca wrote:
HI, I am trying to run an EpiTable on some basic food exposure data where 1=Ate the food item, 2=did not eat food item. However when I run the EpiTable it is automatically assuming that the exposure variable is 2 (ie.e not eating food item). How can I change the exposure variable to 1?
participants (1)
-
epidata-list@lists.umanitoba.ca