Displaying 1 result from an estimated 1 matches for "268521".
Did you mean:
168521
2002 Jan 16
1
factorials
I'm a total newbie at using R, and so there probably
is a better way to do this. However, I couldn't find
one, and so maybe this will help someone.
I was calculating log-likelihoods using a multinomial
model, and found that for large n, prod(n:1) wouldn't
work to calculate factorials (e.g., prod(200:1) =
Inf). The below function calculates the natural log
of a factorial (e.g.