Dear Stata users,
I want to encircle different groups of scoreplot after executing pca command. Is there a way to achieve this in Stata like in R or Python? see Clusters: https://r-statistics.co/Top50-Ggplot....html#Clusters and https://statisticsglobe.com/draw-ell...t-groups-pca-r
I want to encircle different groups of scoreplot after executing pca command. Is there a way to achieve this in Stata like in R or Python? see Clusters: https://r-statistics.co/Top50-Ggplot....html#Clusters and https://statisticsglobe.com/draw-ell...t-groups-pca-r
Code:
webuse iris pca seplen sepwid petlen petwid predict f1 f2, score twoway scatter f2 f1 if iris==1 || scatter f2 f1 if iris==2 || scatter f2 f1 if iris==3, legend(order(1 "setosa" 2 "versicolor" 3 "virginica"))
Comment