Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: -cluster kmeans- with -weight- or -svyset-


From   David Cefskimal <david.cefskimal@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: -cluster kmeans- with -weight- or -svyset-
Date   Sat, 18 Feb 2012 15:47:37 +0100

Dear Statalist,

I am using the -cluster kmeans- command to look for opinion clusters
in a sample of 4200 respondents located in three countries whereby
v1-v7 are ordinal scaled items. vC==1 represents country Nr 1. I found
a four group solution most stable in this country:

cluster kmeans v1 v2 v3 v4 v5 v6 if vC==1, k(4)

My surveysetting is simply -svyset [pw=w1]- . I did the clustering
without the weighting variable as svy does not accept the -cluster
kmeans- command.  How to change the code including the weighting
variable w1?

Thanks a lot, david (Sociologist, Berlin)

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index