Previous Page | Next Page

Functions and CALL Routines

COMB Function



Computes the number of combinations of n elements taken r at a time.
Category: Combinatorial

Syntax
Arguments
Details
Examples
See Also

Syntax

COMB(n, r)


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 [le] n

Details

The mathematical representation of the COMB function is given by the following equation:

[equation]

with n [ge] 0, r [ge] 0, and n[ge] r.

If the expression cannot be computed, a missing value is returned. For moderately large values, it is sometimes not possible to compute the COMB function.


Examples

SAS Statements Results
x=comb(5,1);
5


See Also

Functions:

FACT Function

PERM Function

LCOMB Function

Previous Page | Next Page | Top of Page