FW: Running loops?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FW: Running loops?

Anthony Babinec

Take a look at DO REPEAT in Help. That plus the TO keyword

should do it.

 

Tony Babinec

[hidden email]

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Noel
Sent: Tuesday, March 02, 2010 9:05 PM
To: [hidden email]
Subject: Running loops?

 

Hi Everyone.

I am not sure if I am making this more complicated than need be. I am working with a data set that requires the same computation to create a new variable across about 610 variables. I wrote a macro for it and then realized that none of my documentation/ manuals address not having to write out the variable names, short of running a loop. On the SPSS tools.net site I saw that you can run a macro for a series of variables without a loop but I am not seeing the application.

The set up...
Var1 ... Var610

Compute ... Where VarXFTE is the new variable.
VarXFTE = FTE * (VarX /100)

Any insight? Thank you.

Noel

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2718 - Release Date: 03/02/10 13:34:00

Reply | Threaded
Open this post in threaded view
|

V15 to V18: Appending output

Dale Glaser
Hi all...I think this is the first time in all my years on SPSS-X listserve I've asked for advice of a clerical nature, but I just switched from v15 to v18 (I felt v15 was the least buggy of subsquent versions) and I"m having difficulty cutting-pasting entire SPSS output (e.,g GLM with plots) to WORD (which I frequently do for my projects). 
 
In V15 I would just use the functions ctrl-A and ctrl-K and it was no problem appending the entire output to a WORD document; however this doesn't seem to apply to V18 and when I use the 'export' function, the tables are RTF format instead of maintaining the actual tables in SPSS 'picture' format......so any help to append the entire SPSS output to a WORD document (and maintain the SPSS picture format)  is much appreciated.....thank you.....dale

Dale Glaser, Ph.D.
Principal--Glaser Consulting
Lecturer/Adjunct Faculty--SDSU/USD/AIU
Past-President, San Diego Chapter of
American Statistical Association
3115 4th Avenue
San Diego, CA 92103
phone: 619-220-0602
fax: 619-220-0412
email: [hidden email]
website: www.glaserconsult.com