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]
st: -cluster kmeans- with -weight- or -svyset-
From
David Cefskimal <[email protected]>
To
[email protected]
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/