LCOMB Function
Computes the logarithm of the COMB function, which is the logarithm of the number of combinations of n objects taken r at a time.
| Category: | Combinatorial |
|---|
Table of Contents
Syntax
Required Arguments
n
is a nonnegative integer that represents the total number of elements from which the sample is chosen.
r
is a nonnegative integer that represents the number of chosen elements.
| Restriction | r ≤ n |
|---|
Comparisons
The LCOMB function computes the logarithm of the COMB function.
Example
data _null_;
x=lcomb(5000,500);
y=lcomb(100,10);
put x= y=;
run;
These statements produce these results:
x=1621.4411361 y=30.482323362
See Also
-
Functions:
Last updated: April 14, 2026