Statalist


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

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


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: large numbers in comb(n,k) function: no success
Date   Thu, 5 Feb 2009 10:37:51 -0000

In addition to Maarten's comments: This is why lnfactorial() is
supplied. Often you can only work with the logarithms of large numbers
that arise in combinatorial problems. 

Nick 
[email protected] 

Inna Becher

I would like to implement a comb(n,k) function. But my Stata does not 
allow it because of large n, k-numbers. N=180000 and k=2000. Is there 
any other way to do it? I wasn't successful by using exp(lnfactorial(n))

in mata as well.


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