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   Inna Becher <inna.becher@uni-konstanz.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: large numbers in comb(n,k) function: no success
Date   Thu, 05 Feb 2009 12:06:33 +0100

Thanks a lot Maarten and Nick.
unfortunately could lnfactorial not manage the problem as well...


Nick Cox schrieb:
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 n.j.cox@durham.ac.uk
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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index