/
2clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis
... 2clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis
...

2clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis ... - PDF document

olivia-moreira
olivia-moreira . @olivia-moreira
Follow
372 views
Uploaded On 2016-05-06

2clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis ... - PPT Presentation

Options Main kisrequiredandindicatesthatgroupsaretobeformedbytheclusteranalysismeasuremeasurespeciesthesimilarityordissimilaritymeasureThedefaultismeasureL2EuclideandistanceThisoption ID: 308003

Options  Main k(#)isrequiredandindicatesthat#groupsaretobeformedbytheclusteranalysis.measure(measure)speciesthesimilarityordissimilaritymeasure.Thedefaultismeasure(L2) Euclideandistance.Thisoption

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "2clusterkmeansandkmedians—Kmeansand..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

2clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis Options  � Main �k(#)isrequiredandindicatesthat#groupsaretobeformedbytheclusteranalysis.measure(measure)speciesthesimilarityordissimilaritymeasure.Thedefaultismeasure(L2),Euclideandistance.Thisoptionisnotcasesensitive.See[MV]measure optionfordetaileddescriptionsofthesupportedmeasures.name(clname)speciesthenametoattachtotheresultingclusteranalysis.Ifname()isnotspecied,Statandsanavailableclustername,displaysitforyourreference,andattachesthenametoyourclusteranalysis.  � Options �start(start option)indicateshowthekinitialgroupcentersaretobeobtained.Theavailablestart optionsarekr andom(seed#),thedefault,speciesthatkuniqueobservationsbechosenatrandom,fromamongthosetobeclustered,asstartingcentersforthekgroups.Optionally,arandom-numberseedmaybespeciedtocausethecommandsetseedseed#(see[R]setseed)tobeappliedbeforethekrandomobservationsarechosen.f irstk,ex cludespeciesthattherstkobservationsfromamongthosetobeclusteredbeusedasthestartingcentersforthekgroups.Withtheexcludeoption,theserstkobservationsarenotincludedamongtheobservationstobeclustered.l astk,ex cludespeciesthatthelastkobservationsfromamongthosetobeclusteredbeusedasthestartingcentersforthekgroups.Withtheexcludeoption,theselastkobservationsarenotincludedamongtheobservationstobeclustered.r andom(seed#)speciesthatkrandominitialgroupcentersbegenerated.Thevaluesarerandomlychosenfromauniformdistributionovertherangeofthedata.Optionally,arandom-numberseedmaybespeciedtocausethecommandsetseedseed#(see[R]setseed)tobeappliedbeforethekgroupcentersaregenerated.pr andom(seed#)speciesthatkpartitionsbeformedrandomlyamongtheobservationstobeclustered.Thegroupmeansormediansfromthekgroupsdenedbythispartitioningaretobeusedasthestartinggroupcenters.Optionally,arandom-numberseedmaybespeciedtocausethecommandsetseedseed#(see[R]setseed)tobeappliedbeforethekpartitionsarechosen.everyk thspeciesthatkpartitionsbeformedbyassigningobservations1,1+k,1+2k,:::totherstgroup;assigningobservations2,2+k,2+2k,:::tothesecondgroup;andsoon,toformkgroups.Thegroupmeansormediansfromthesekgroupsaretobeusedasthestartinggroupcenters.seg mentsspeciesthatknearlyequalpartitionsbeformedfromthedata.ApproximatelytherstN=kobservationsareassignedtotherstgroup,thesecondN=kobservationsareassignedtothesecondgroup,andsoon.Thegroupmeansormediansfromthesekgroupsaretobeusedasthestartinggroupcenters.g roup(varname)providesaninitialgroupingvariable,varname,thatdeneskgroupsamongtheobservationstobeclustered.Thegroupmeansormediansfromthesekgroupsaretobeusedasthestartinggroupcenters.keepcentersspeciesthatthegroupmeansormediansfromthekgroupsthatareproducedbeappendedtothedata. clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis5 .tabstatflexspeedstrength,by(g4abs)stat(minmeanmax)Summarystatistics:min,mean,maxbycategoriesof:g4absg4abs flexib~yspeedstrength 1 8.128.053.61 8.8528.7433334.358 9.979.795.42 2 4.321.055.46 5.94653.44856.8325 7.895.327.66 3 .03.037.38 1.9694291.1448578.478857 3.482.179.57 4 2.295.11.05 3.1576.9881.641 3.998.873.02 Total .03.03.05 4.4026253.8758756.439875 9.979.799.57 Afterlookingatthelast4observations(whicharethegroupmeansbecauseyouspeciedkeep-centers),youdecidethatwhatyoureallywantedtoseewastheminimumandmaximumvaluesandthemeanforthefourgroups.Youremovethelast4observationsandthenusethetabstatcommandtoviewthedesiredstatistics.Group1,with15students,isalreadydoingwellinexibilityandspeedbutwillneedextrastrengthtraining.Group2,with20students,needstoemphasizespeedtrainingbutcouldusesomeimprovementintheothercategoriesaswell.Group3,thelargest,with35students,hasseriousproblemswithbothexibilityandspeed,thoughtheydidwellinthestrengthcategory.Group4,thesmallest,with10students,needshelpwithexibilityandstrength.Becauseyoulikelookingatgraphs,youdecidetoviewthematrixgraphagainbutwithgroupnumbersusedasplottingsymbols. clusterkmeansandkmedians—Kmeansandkmediansclusteranalysis9 0.5.Thebinarysimilaritymeasurescanaccommodatethecomparisonofabinaryobservationtoaproportion.See[MV]measure optionfordetailsonthissubjectandfortheformulasforalltheavailable(dis)similaritymeasures.ReferenceMakles,A.2012.Statatip110:Howtogettheoptimalk-meansclustersolution.StataJournal12:347–351.Alsosee[MV]clusternotes—Placenotesinclusteranalysis[MV]clusterstop—Cluster-analysisstoppingrules[MV]clusterutility—List,rename,use,anddropclusteranalyses[MV]cluster—Introductiontocluster-analysiscommands[MV]clustermat—Introductiontoclustermatcommands

Related Contents


Next Show more