Date: Sun, 16 Jan 2005 17:37:32 -0500
Reply-To: "Alexander J. Shackman" <shackman@PSYPHW.PSYCH.WISC.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Alexander J. Shackman" <shackman@PSYPHW.PSYCH.WISC.EDU>
Subject: Re: spss performance issues (workspace, cache, execute)
Richard & Raynald:
Thanks much for your advice. After some experimentation, I ended up running
the appended syntax (adapted from Raynald's DO REPEAT code) on my laptop.
Based on the times between successive SHOW commands it took about 5 minutes
30 seconds to run for all 4788 vars and 40 cases (consistent with Raynald's
observations). Thanks too for your advice re: cache and workspace -- VERY
helpful.
Also, for others who like me know little programming and are reading this
post, I found it helpful to look over the descriptions of macros in
Raynald's book and Sarah Boslaugh's book (sage publications) to really
understand Raynald and Richard's code.
Thanks!
******************************************
show all.
DEFINE !safetest(!POS=!TOKENS(1))
DO REPEAT var=safe1 TO !CONCAT('safe',!1) /log=sflg1 TO !CONCAT('sflg',!1).
- COMPUTE log=LG10(var).
END REPEAT.
EXECUTE.
!ENDDEFINE.
*///////////.
SET MPRINT=YES.
!safetest 2394.
show all.
DEFINE !threattest(!POS=!TOKENS(1))
DO REPEAT var=thrt1 TO !CONCAT('thrt',!1) /log=thlg1 TO !CONCAT('thlg',!1).
- COMPUTE log=LG10(var).
END REPEAT.
EXECUTE.
!ENDDEFINE.
*///////////.
SET MPRINT=YES.
!threattest 2394.
show all.
***************************************