[R] cluster analysis in R

Jose Iparraguirre Jose.Iparraguirre at ageuk.org.uk
Fri Nov 16 00:34:24 CET 2012


Have a look at the package mclust.
Jose
________________________________________
From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of Ingmar Visser [i.visser at uva.nl]
Sent: 15 November 2012 21:10
To: KitKat
Cc: r-help at r-project.org
Subject: Re: [R] cluster analysis in R

Dear KitKat,

After installing R and reading some introductory material on getting
started with R you may want to check the CRAN task view on cluster analysis:
http://cran.r-project.org/web/views/Cluster.html
which has many useful references to all kinds and flavors of clustering
techniques, hierarchical or not, selecting the nr of clusters based on some
model selection statistic, et cetera.

hth, Ingmar

On Thu, Nov 15, 2012 at 7:14 PM, KitKat <katherinewright at trentu.ca> wrote:

> I have two issues.
>
> 1-I am trying to use morphology to identify gender. I have 9 variables,
> both
> continuous and categorical. I was using two-step cluster analysis in SPSS
> because two-step could deal with different types of variables. But the
> output tells me that an animal is in cluster 1 or 2, it does not give me a
> probability (ex. 0.70 cluster 2).  I also did not want to specify that I
> want two clusters, I wanted to see if analysis would naturally give me two
> clusters. These were all advantages to using SPSS but now I'm having
> trouble.
>
> Does cluster analysis in R give probabilities?
> Which type of cluster analysis in R is best to use? I did not think
> hierarchical analysis was a great choice, but maybe I'm wrong. I don't want
> to create the average variable, I want the analysis to do it on its own.
> I'm also new to R so would have to figure out the right codes to enter,
> etc.
>
> 2-I was also told to analyze each variable on its own before including it
> in
> cluster analysis. I had first included them all then teased out which ones
> were not important, but now have been asked to do the reverse. I cannot do
> cluster analysis on one variable -for example, one variable is either
> present or absent on an individual so of course cluster analysis gives me
> two clusters, one representing present and one representing absent. I was
> told to use regression, but how can regression also not give the same
> result? I feel like it would give me a line connecting a bunch of 0s to 1s.
> I don't know what to use, or if I can analyze each variable like this
> before
> putting them into cluster analysis. I ultimately want to only use the
> smallest number of variables necessary to identify gender.
>
> I have tried reading manuals etc and talking to people at my school, but
> nothing has helped. If anyone has any insight, that would be much
> appreciated
> Thank you!
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/cluster-analysis-in-R-tp4649635.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org 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.

Wrap Up & Run 10k next March to raise vital funds for Age UK

Six exciting new 10k races are taking place throughout the country and we want you to join in the fun! Whether you're a runner or not, these are
events are for everyone ~ from walking groups to serious athletes. The Age UK Events Team will provide you with a training plan to suit your 
level and lots of tips to make this your first successful challenge of 2012. Beat the January blues and raise some vital funds to help us 
prevent avoidable deaths amongst older people this winter.


Sign up now! www.ageuk.org.uk/10k

Coming to; London Crystal Palace, Southport, Tatton Park, Cheshire Harewood House, Leeds,Coventry, Exeter


Age UK Improving later life
www.ageuk.org.uk


 

-------------------------------
Age UK is a registered charity and company limited by guarantee, (registered charity number 1128267, registered company number 6825798). 
Registered office: Tavis House, 1-6 Tavistock Square, London WC1H 9NA.

For the purposes of promoting Age UK Insurance, Age UK is an Appointed Representative of Age UK Enterprises Limited, Age UK is an Introducer 
Appointed Representative of JLT Benefit Solutions Limited and Simplyhealth Access for the purposes of introducing potential annuity and health 
cash plans customers respectively.  Age UK Enterprises Limited, JLT Benefit Solutions Limited and Simplyhealth Access are all authorised and 
regulated by the Financial Services Authority. 
------------------------------

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are 
addressed. If you receive a message in error, please advise the sender and delete immediately.

Except where this email is sent in the usual course of our business, any opinions expressed in this email are those of the author and do not 
necessarily reflect the opinions of Age UK or its subsidiaries and associated companies. Age UK monitors all e-mail transmissions passing 
through its network and may block or modify mails which are deemed to be unsuitable.

Age Concern England (charity number 261794) and Help the Aged (charity number 272786) and their trading and other associated companies merged 
on 1st April 2009.  Together they have formed the Age UK Group, dedicated to improving the lives of people in later life.  The three national 
Age Concerns in Scotland, Northern Ireland and Wales have also merged with Help the Aged in these nations to form three registered charities: 
Age Scotland, Age NI, Age Cymru.













More information about the R-help mailing list