LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 1997, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 28 Jun 1997 14:07:47 GMT
Reply-To:   BARNEY KREBS <krebs@IN.NET>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   BARNEY KREBS <krebs@IN.NET>
Organization:   INTERNET Indiana
Subject:   Re: permutations/combinations

On Fri, 27 Jun 1997 12:35:57 -0400, "Peter R. Berti" <> wrote:

>I was unable to find a SAS function for calculating Permutations or >Combinations. In fact I couldn't even find one for Factorials. I had >thought that these would be SAS functions? Am I just missing them? > >Peter

Base SAS does include a GAMMA function, which gives you the factorials. You can find permutations and combinations by doing suitable arithmetic on the GAMMA results. (or on LGAMMA for large arguments.) See the documentation for details.


Barney Krebs

Back to: Top of message | Previous page | Main SAS-L page