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 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 13 Oct 2006 09:17:31 +0200
Reply-To:     Marta García-Granero
              <biostatistics@terra.es>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Marta García-Granero
              <biostatistics@terra.es>
Organization: Asesoría Bioestadística
Subject:      Re: ANOVA syntax
In-Reply-To:  <200610121717.k9CAkinr028632@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-15

Hi Glenys

GL> I want to conduct One-way ANOVA's of a few DV's with a very large number of GL> IV's (grouping factors).

GL> Is it possible to write syntax that creates a routine that will repeat the GL> instructions for each of the IV's? I have searched this site and others for GL> macros that might do this, but to no avail.

Is this what you want? (make sure that "C:\Temp\" folder exists).

MACRO definition. DEFINE ALLANOVA (y=!ENCLOSED("(",")")/ x=!ENCLOSED("(",")")). DO IF $CASENUM=1. !DO !i !IN (!y). !DO !j !IN (!x). WRITE OUTFILE "C:\Temp\AllANOVAS.sps" /"ONEWAY" /!QUOTE(!i) " BY " !QUOTE(!j) /" /STATISTICS DESCRIPTIVES HOMOGENEITY" /" /POSTHOC = SNK TUKEY ALPHA(.05).". * I have selected some descriptives&statistics, * modify them if needed, but be careful with the / and " . !DOEND. !DOEND. END IF. EXECUTE. INCLUDE FILE="C:\Temp\AllANOVAS.sps". !ENDDEFINE.

* MACRO call *. ALLANOVA y=(list of depvar) x=(list of IV).

-- Regards, Dr. Marta García-Granero,PhD mailto:biostatistics@terra.es Statistician

--- "It is unwise to use a statistical procedure whose use one does not understand. SPSS syntax guide cannot supply this knowledge, and it is certainly no substitute for the basic understanding of statistics and statistical thinking that is essential for the wise choice of methods and the correct interpretation of their results".

(Adapted from WinPepi manual - I'm sure Joe Abrahmson will not mind)


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