软件spss,K-Means分析时,初始中心类问题
发布网友
发布时间:2022-05-06 03:59
我来回答
共1个回答
热心网友
时间:2022-06-28 16:16
和你遇到了同样的问题,在GOOGLE上搜到的答案。初始中心的文件,第一个变量就应该是cluster_,值为1-k(k就是类别数)。我按这个做了,就OK啦!
问:
I ran the SPSS Quick Cluster procere for K Means cluster
analysis, specifying an SPSS file with the initial cluster
centers. I received error message # 14024 which states:
"The file referenced in the FILE subcommand does not have
the proper format for QUICK CLUSTER initial cluster centers."
My cluster center file includes all the variables that are
used in the Quick Cluster command and there is one case for
each of the centers. Am I missing something?
答:
The first variable in your cluster center file must be
named cluster_ . The values for cluster_ in the K rows will
be 1, 2, ... K, where K is the number of clusters. The absence
of cluster_ will trigger the improper format error message.
Other essential properties of the centers file include:
1. You must have at least as many cases in the center file
as the number of clusters specified in the QUICK CLUSTER command.
If there are K cases in the centers file and J (J< K) clusters
specified in the QUICK CLUSTER command, only the first J cases
from the centers file will be used.
2. All the variables that are included in the QUICK CLUSTER
command must be included in the centers file. Variable order
need not be identical in the QUICK CLUSTER command and the
centers file (provided cluster_ comes first in the centers file).
Variables in the centers file that are not in the QUICK CLUSTER
variable list will be ignored in the analysis.