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 (January 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 4 Jan 2007 22:31:14 -0800
Reply-To:     David L Cassell <davidlcassell@MSN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David L Cassell <davidlcassell@MSN.COM>
Subject:      Re: Permutations of photos in 3*3 matrix...?
In-Reply-To:  <200701041238.l04BkCeP006706@mailgw.cc.uga.edu>
Content-Type: text/plain; format=flowed

ben.powell@CLA.CO.UK wrote back: > >Thanks for the offline comment, I used this code (from SAS): > >data test3; > drop i perms; > array x (9) $9 ('A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I'); > > /* Create a new variable of the concatenated results */ > length new $9; > perms=fact(9); > do i=1 to perms; > call allperm(i, of x(*)); > new=cats(of x(*)); > output; > end; >run;

You can also get the list of permutations out of PROC PLAN.

If you have rules for selections in the X and Y dimensions of your 3x3 grid, then PROC PLAN might be a more effective approach.

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ From photos to predictions, The MSN Entertainment Guide to Golden Globes has it all. http://tv.msn.com/tv/globes2007/?icid=nctagline1


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