Stata 15 help for lnfactorial()

[FN] Mathematical functions

Function

lnfactorial(n) Description: the natural log of n factorial = ln(n!)

To calculate n!, use round(exp(lnfactorial(n)),1) to ensure that the result is an integer. Logs of factorials are generally more useful than the factorials themselves because of overflow problems. Domain: integers 0 to 1e+305 Range: 0 to 8e+307


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index