Quantcast

Obtaining & saving cluster membership via hclust

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Obtaining & saving cluster membership via hclust

Bob Green
Hello,

I want to examine the characteristics of 49 persons in terms of their
symptoms and motivations, in a cluster analysis . The data is in a
binary format.

I was hoping to save and then examine the cluster membership. I would
appreciate advice on whether this is possible within hclust and if
so, how do I do this? The syntax I have employed so far, follows.

FS4 <- read.csv("E://Arsont2.csv",header=T)
dmat <- dist(FS4,  method="binary")
dmat
ctest <- hclust (dist(FS4,  method="binary"), "ave")
plot(ctest)


Bob Green

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Obtaining & saving cluster membership via hclust

Uwe Ligges-3


On 24.06.2012 06:20, Bob Green wrote:

> Hello,
>
> I want to examine the characteristics of 49 persons in terms of their
> symptoms and motivations, in a cluster analysis . The data is in a
> binary format.
>
> I was hoping to save and then examine the cluster membership. I would
> appreciate advice on whether this is possible within hclust and if so,
> how do I do this? The syntax I have employed so far, follows.
>
> FS4 <- read.csv("E://Arsont2.csv",header=T)
> dmat <- dist(FS4,  method="binary")
> dmat
> ctest <- hclust (dist(FS4,  method="binary"), "ave")
> plot(ctest)

See ?cutree

Uwe Ligges

>
>
> Bob Green
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Loading...