Computes the number of combinations of n elements taken r at a time
Category: Mathematical
COMB ( n, r )
n
is an integer that represents the total number of elements from which the sample is chosen .
r
is an integer that represents the number of chosen elements.
Restriction: r ‰ n
The mathematical representation of the COMB function is given by the following equation:
with n ‰ 0, r ‰ 0, and n ‰ r .
If the expression cannot be computed, a missing value is returned.
SAS Statements | Results |
---|---|
x=comb(5,1); | 5 |
Functions:
'FACT Function' on page 517
'PERM Function' on page 714