Skip to content
Prev 35318 / 63421 Next

RFC: lchoose() vs lfactorial() etc

Hi Martin

I think you're absolutely right about this;
One thing I need again and again is
a multinomial function, and usually define:

 > lmultinomial
function (x)
{
    lfactorial(sum(x)) - sum(lfactorial(x))
}

 > multinomial
function (x)
{
    exp(lmultinomial(x))
}


It would be nice to have this in base R.

Is this the place to discuss having complex
arguments for gamma()?


best wishes

rksh
Martin Maechler wrote: