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 (October 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Oct 2002 07:33:19 -0500
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
Subject:      Re: Help!!! Preparing files for bootsrap - 1 solution
In-Reply-To:  <47A009184448404DA86E627013150EE2408BCF@dbkma1.databank.net>
Content-type: text/plain; charset=iso-8859-1

Hi Rita

See the syntax files # 12 and 13 in http://pages.infinit.net/rlevesqu/SampleSyntax.htm#WorkingWithManyFiles

The methods described in the above sample syntax files are based on different values of single categorical numeric or string variables.

It is easy to generalise to 4 variables. All you have to do is combine your 4 variables into a single variable. You would use CONCAT for string variables and something like this for numeric variables:

COMPUTE allvar=var1*1000 + var2*100 + var3*10 + var4. when var1 to var4 are all between 0 and 10.

If necessary AUTORECODE the variables before combining them.

HTH

Raynald Levesque rlevesque@videotron.ca Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Rita Clivio Sent: October 29, 2002 2:28 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Help!!! Preparing files for bootsrap - 1 solution

Dear Listers I succeed in preparing this syntax (and I join with you , maybe it could be useful to someone); it works, but xsave command doesn't allow more than 10 iterations. I'm looking for another solution.

DEFINE !prova (VAR1= !TOKENS(1)/ VAR2= !TOKENS(1) / VAR3= !TOKENS(1) ). !DO !i=1 !TO !VAR1. + DO IF !VAR2=!i. + !DO !k=1 !TO 4. + DO IF area=!k. + !DO !j=1 !TO 4. + DO IF size=!j. + DO IF prod =!VAR3. + XSAVE OUTFILE=!QUOTE(!CONCAT("e:\Temp\TEMP\file","R",!i,"_",!k,"_",!j,"_",!VAR3,". sav")) /KEEP=aaa bbb ccc ddd eee . + END IF. + END IF. + !DOEND. + END IF. + !DOEND. + END IF. !DOEND. EXECUTE. !ENDDEFINE.

!prova VAR1=5 VAR2=custom VAR3=525 .

Cordiali Saluti - Best Regards

Rita Clivio

Databank Spa via Piatti 11 Milano 20123 tel 02 55002.381 fax 02.8056495


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