I'd like to use correlation clustering
and I figure R
is a good place to start.
I can present the data to R
as a set of large, sparse vectors or as a table with a pre-computed dissimilarity matrix.
My questions are:
R
functions to turn this into a hierarchical cluster
with agnes
that uses correlation clustering
?correlation clustering
function by hand, if so how do I make it play well with agnes
?Correlation clustering provides a method for clustering a set of objects into the optimum number of clusters without specifying that number in advance.
Use the function cor. test(x,y) to analyze the correlation coefficient between two variables and to get significance level of the correlation.
The intracluster correlation coefficient (ICC) ,or ρ (the Greek rho), is a measure of the relatedness of clustered data. It accounts for the relatedness of clustered data by comparing the variance within clusters with the variance between clusters.
I admittedly know very little about this subject, but just to point you in a direction:
The standard approach would be one that involves cor()
, hclust()
and plot.hclust()
.
I'd highly recommend heatmap.2 from the wonderful gplots package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With