Hi everyone,
I am working on my thesis and very new to Stata. I am using Stata version 18.5.
I am trying to compute silhouette scores for my kmeans cluster analysis with 3 clusters after conducting PCA. I retained 3 scores and they are called pca1, pca2, pca3.
I ran the following:
cluster kmeans pca1 pca2 pca3, k(3) name(kmeans3) measure(L2Squared)
matrix dissim di = pca1 pca2 pca3, L2Squared
silhouette kmeans3, dist(di) id(_uuid) lwidth (0.8 0.8 0.8)
However, I get the following error:
option contents() not allowed since Stata 17; see help table for updated syntax
Is it a syntax error? Could anybody advise me on how to resolve the issue?
Thank you for your help in advance!
I am working on my thesis and very new to Stata. I am using Stata version 18.5.
I am trying to compute silhouette scores for my kmeans cluster analysis with 3 clusters after conducting PCA. I retained 3 scores and they are called pca1, pca2, pca3.
I ran the following:
cluster kmeans pca1 pca2 pca3, k(3) name(kmeans3) measure(L2Squared)
matrix dissim di = pca1 pca2 pca3, L2Squared
silhouette kmeans3, dist(di) id(_uuid) lwidth (0.8 0.8 0.8)
However, I get the following error:
option contents() not allowed since Stata 17; see help table for updated syntax
Is it a syntax error? Could anybody advise me on how to resolve the issue?
Thank you for your help in advance!
Comment