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 (May 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 11 May 2010 07:18:10 -0400
Reply-To:     Richard Ristow <wrristow@mindspring.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Richard Ristow <wrristow@mindspring.com>
Subject:      Re: Table of means
Comments: To: David Marso <david.marso@GMAIL.COM>
In-Reply-To:  <201005111032.o4B0bDTh010309@malibu.cc.uga.edu>
Content-Type: text/html; charset="us-ascii"

<html> <body> At 06:32 AM 5/11/2010, David Marso wrote:<br><br> <blockquote type=cite class=cite cite=""><tt><font size=2>COMPUTE SubID=$CASENUM.<br> VECTOR V=Brand1_Attrib1 TO Brand3_Attrib4.<br> LOOP Brand=1 to 3.<br> +&nbsp;&nbsp;&nbsp; DO REPEAT A=1 TO 4 /NewA=Attrib1 TO Attrib4.<br> +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMPUTE NEWA=V((B-1)*4 + A).<br> +&nbsp;&nbsp;&nbsp; END REPEAT.<br> +&nbsp;&nbsp;&nbsp; XSAVE OUTFILE &quot;Restructured.sav&quot; <br> </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font size=2>/KEEP SubID Brand Attrib1 TO Attrib4<br> END LOOP.<br> EXE.<br> GET FILE&nbsp; &quot;Restructured.sav&quot; .<br> </font></tt>Then your TABLE or MEANS command as previous ;-)<br> I just couldn't resist the OLD SKOOL intrusion here !!!!<br> We don't needs to spell out any stinking variable names ;-)</blockquote><br> Good old XSAVE. I reluctantly converted to VARSTOCASES myself, but yes, XSAVE can do marvelous things including, as you say, not need as many variable names written explicitly.<br><br> The many-to-many merge algorithm for which I claim joint credit with you, David, takes advantage of just this feature of XSAVE. In the process, neatly solving a problem that's been around the list, off and on, for years.</body> <br> </html>

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


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