Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: large numbers in comb(n,k) function: no success


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: RE: large numbers in comb(n,k) function: no success
Date   Thu, 5 Feb 2009 11:31:58 +0000 (GMT)

--- On Thu, 5/2/09, Inna Becher wrote:
> unfortunately could lnfactorial not manage the problem as
> well...

-lnfactorial()- can handle that problem as long as you don't 
-exp()- it:

di lnfactorial(180000) - (lnfactorial(2000)) + lnfactorial(180000-2000)

In many situations where these numbers show up you can apply 
some tricks to make these number much more manageable, but 
the trick depends on the specific situation. If you tells us 
why you want to access this number, we may be able to help you. 

-- Maarten 

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------





      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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