Date: Sun, 22 May 2011 15:33:33 +0300
Reply-To: Eduard Salahov <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Eduard Salahov <firstname.lastname@example.org>
Subject: Re: Repeated Statistical Procedure for different subsets
Thank you for prompt reply
Yes analysis is more complicated that is why I am not satisfied with only
Even more to that, I have a set of dependent and independent variables and
to avoid writing a code of the same stat procedures for each combination of
variables and then correcting ALL of them (any correction to the procedure
syntax code) I wanted to write one procedure and apply it to different
combinations of variables and for different subsets.
Actually in my question I should have mentioned that I am looking for a
COMMAND that will introduce
different variables from the list of variables as well, f.e. var1 var2 var3
t-test var1 by sex.
t-test var2 by sex
and so on.
On Sun, May 22, 2011 at 14:12, Art Kendall <Art@drkendall.org> wrote:
> if you want the cities in one table
> sort cases by city.
> split file layered by city.
> or if you want each city in a separate table
> split file separate by city.
> However, given your example, is it possible that you want a more complex
> anova than just separate t-test?
> Art Kendall
> Social Research Consultants
> On 5/22/2011 5:44 AM, EduSaR wrote:
> Dear All,
> Please suggest the way to deal with the following task.
> I have database with cases from 5 different cities and I need to run same
> statistical procedures for each of city.
> To make it simple, let's say I want to run t-testA and t-testB for city 1,
> then for city 2 and so on.
> So I thought of doing something like that
> loop #n = 1 to 5. (in this example max for #n is 5 because cities
> are coded 1 to 5)
> filter = #n.
> end loop.
> This specific approach would not work because loop is used for
> transformation command only.
> If I am right LOOP is "going" from case to case in the data base repeating
> procedure for current case only and that is why it is used only for
> In my case I need a command that will go through entire dataset selecting
> cases from city 1 and run two t-tests, then again though entire dataset
> selecting cases from city 2 ... and so on 5 times. What command could you
> suggest for such situation?
> Sincerely, Eduard.
> View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Repeated-Statistical-Procedure-for-different-subsets-tp4416436p4416436.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
> To manage your subscription to SPSSX-L, send a message toLISTSERV@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