Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tabodds.ado


From   "Falk, Jonathan" <Jonathan.Falk@nera.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: tabodds.ado
Date   Fri, 9 Apr 2004 12:13:02 -0400

I believe I have found (and corrected) a problem in tabodds.ado.  I have a
dataset in which one population has 37363 cases out of 176875 exposed.
tabodds reported zero exposed and zero cases for this group.  Examination of
the code revealed that local variables d and h are defined in the code as
int.  I modified the ado file to have these become long and the code appears
to run correctly.  I see no obvious reason that these variables need to be
integers beyond the fact that the programmer did not anticipate such large
samples.  Unless someone tells me I've done something wrong, I will keep
these changes... listed below.

                         CHANGE: qui gen int `h' = `binomial' - `myd' TO qui
gen long `h' = `binomial' - `myd' 
		 CHANGE: gen int `d' = `myd' * `W' if `touse'  TO gen long
`d' = `myd' * `W' if `touse'

Jonathan Falk
Vice President, NERA
1166 Avenue of the Americas
New York, NY 10036
Phone: (212) 345-5315
Efax: (707) 922-0007
"To help readers understand your writing andto minimize requests for
clarification, avoid the  use of TLAs."





_________________________________________________________________ 

This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail. 

Thank you for your cooperation. 
_________________________________________________________________ 


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index