Hi all, I have a dataset with numeric and factor columns of data which I developed a Gower Dissimilarity Matrix for (Daisy) and used Agglomerative Nesting (Agnes) to develop 20 clusters. I would like to use the 20 clusters to determine cluster membership for a new dataset (using predict) but cannot find a way to do this (no way to "predict" in the cluster package). I know I can use "predict" in cclust, kcca, and flexclust- but these algorithms do not permit factor data or use a Gower dissimilarity matrix, so are unusable to me. Any suggestions? Thanks in advance, Scott Scott Bearer, Ph.D. Forest Ecologist The Nature Conservancy in Pennsylvania Community Arts Center 220 West Fourth Street, 3rd Floor Williamsport, PA 17701
ngottlieb at marinercapital.com
2007-Jul-23 19:35 UTC
[R] Cluster prediction from factor/numeric datasets
Scott: Suggest you look at using Discrimnant Analysis (don't know which R package has it). Take the Clusters created, using Discrimnant Analysis, Get Fisher Scores for the clusters. Then you can take new dataset applying fisher scores to see what which defined cluster the new dataset will be classified into. Neil -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Scott Bearer Sent: Monday, July 23, 2007 1:39 PM To: r-help at stat.math.ethz.ch Subject: [R] Cluster prediction from factor/numeric datasets Hi all, I have a dataset with numeric and factor columns of data which I developed a Gower Dissimilarity Matrix for (Daisy) and used Agglomerative Nesting (Agnes) to develop 20 clusters. I would like to use the 20 clusters to determine cluster membership for a new dataset (using predict) but cannot find a way to do this (no way to "predict" in the cluster package). I know I can use "predict" in cclust, kcca, and flexclust- but these algorithms do not permit factor data or use a Gower dissimilarity matrix, so are unusable to me. Any suggestions? Thanks in advance, Scott Scott Bearer, Ph.D. Forest Ecologist The Nature Conservancy in Pennsylvania Community Arts Center 220 West Fourth Street, 3rd Floor Williamsport, PA 17701 ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -------------------------------------------------------- This information is being sent at the recipient's request or...{{dropped}}