|Date: ||Wed, 2 Jul 2008 08:53:00 -0400|
|Reply-To: ||Gene Maguin <firstname.lastname@example.org>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>|
|From: ||Gene Maguin <email@example.com>|
|Subject: ||Re: Looping by index from variable contents|
|Content-Type: ||text/plain; charset="US-ASCII"|
Yesterday, Frank Millard posted what I thought was a simple question about
how to set up loops.
I replied, 'Look at the Loop-end loop command in the documentation.'
I did b4 asking for help. The solution I was looking was not straight
forward in the docs.
I want to control a loop based on the results of a two step cluster
I want to find clusters within clusters.
So, if the analysis produces 4 clusters, saved in a new variable "var1" by
the analysis, I need to construct a loop control such that:
Cases are selected for each cluster in var1; the two step cluster syntax is
modified to create new variable output for each cluster in var1;
Run the two step cluster
My reply this morning.
Frank, I think there are others on the list with more experience with
clustering and clusters. I've never done a cluster analysis. That said, the
idea of 'finding clusters within clusters' seems odd to me. That is, why
wouldn't you just extract more clusters. That said, I think that a macro
loop may be more relevant to your question because you are wanting to loop
through procedure commands rather than transformation commands. There are
macro examples, including a loop command, in one of the appendices of the
syntax ref manual. I've only set up a couple of simple macros. Other folks,
please jump in.
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
For a list of commands to manage subscriptions, send the command