Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: 2-stages cluster analysis


From   Stas Kolenikov <[email protected]>
To   [email protected]
Subject   Re: st: 2-stages cluster analysis
Date   Mon, 20 Sep 2010 23:23:41 -0500

On Mon, Sep 20, 2010 at 11:10 PM, Matt Loke <[email protected]> wrote:
> Thanks for your help. Nevertheless, I need you to explain me the command lines you posted. Indeed, the command cluster creates three variables (stage1cl_id, stage1cl_ord and stage1cl_hgt). I thought that the one you were referring to was stage1cl_hgt. Anyway, the loop gives me a syntax error.

Sure... it was a pseudo-syntax, you need to fill in gaps in it.
Anyways, you are doing the hierarchical analysis, and the variables
you see provide the description of the tree. You need to cut your tree
to obtain your clusters:

cluster generate stage1clusters = cut(), name( stage1 )

and then you need to do your cluster analysis within the groups
identified by this new variable.

-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index