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

st: unexpected result of calculation


From   david schriger <schriger@ucla.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: unexpected result of calculation
Date   Wed, 03 Mar 2004 01:14:18 +0000

Dear Statalisters,

Would someone be kind enough to explain to me why the following calculation produces a number when I use "15" but produces a missing for values > 18. This occurs whether I am doing a 'display' or 'generating' a variable.


. di 9^140*(15^139)*exp(-9*15)/exp(lnfact(139))
.28701151

. di 9^140*(19^139)*exp(-9*19)/exp(lnfact(139))
[no output produced]

thanks,

David Schriger
UCLA Emergency Medicine
.


*
* 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