<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><div><span class="Apple-style-span" style="font-size: 16px;">Saudações segue um exemplo de Análise de Cluster, espero que seja útil !</span></div><div><span class="Apple-style-span" style="font-size: 16px;">Felicidades ...</span></div><div><span class="Apple-style-span" style="font-size: 16px;">Alexandro</span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;">x<- data.frame(matrix( c(9.6,28,8.4,31,2.4,42,18.2,38,3.9,25,6.4,41),nrow = 6, ncol=2, byrow=TRUE,</span></div><div><span class="Apple-style-span" style="font-size: 16px;">dimnames = list(c("A","B","C","D","E","F"),</span></div><div><span class="Apple-style-span" style="font-size: 16px;">
c("Renda","Idade") ) ) )</span></div><div><span class="Apple-style-span" style="font-size: 16px;">x</span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;">hc <- hclust(dist(x), "single")</span></div><div><span class="Apple-style-span" style="font-size: 16px; ">plclust(hc, hang = -5, main = "Dendograma ")</span><br></div><div><span class="Apple-style-span" style="font-size: 16px;">dend1=as.dendrogram(hc)</span></div><div><span class="Apple-style-span" style="font-size: 16px;">plot(dend1)</span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;">#MATRIZ
COFENÉTICA</span><br></div><div><div><span class="Apple-style-span" style="font-size: 16px; ">d1ex1 <- dist(x, method = "euclidean") # distance matrix</span></div><div><span class="Apple-style-span" style="font-size: 16px;">d1ex1</span></div><div><span class="Apple-style-span" style="font-size: 16px;">hcex1 <- hclust(d1ex1, method="single") </span></div><div><span class="Apple-style-span" style="font-size: 16px;">hcex1</span></div><div><span class="Apple-style-span" style="font-size: 16px;">d2ex1=cophenetic(hcex1)</span></div><div><span class="Apple-style-span" style="font-size: 16px;">d2ex1</span></div><div><span class="Apple-style-span" style="font-size: 16px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 16px;">corrcofenet = cor(d1ex1,d2ex1)</span></div><div><span class="Apple-style-span" style="font-size: 16px;">corrcofenet</span></div><div><span class="Apple-style-span" style="font-size:
16px;"><br></span></div><div style="font-size: 16px; "><br></div></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">De:</span></b> Emerson Cotta Bodevan <ecbodevan.ufvjm@gmail.com><br><b><span style="font-weight: bold;">Para:</span></b> r-br@listas.c3sl.ufpr.br<br><b><span style="font-weight: bold;">Enviadas:</span></b> Quinta-feira, 7 de Julho de 2011 23:16<br><b><span style="font-weight: bold;">Assunto:</span></b> [R-br] Multivariada - Clustering<br></font><br><div
id="yiv1028202814">Prezados,<br><br>qual pacote do R é mais adequado para análise multivariada? Especificamente, clustering (gráficos de dendograma,etc).<br><br>Abs,<br clear="all"><br>-- <br><font size="4"><b><span style="font-family: 'comic sans ms', sans-serif; ">Emerson</span></b></font><br>
<br>
</div><br>_______________________________________________<br>R-br mailing list<br><a ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br><br></div></div></blockquote></div></div></body></html>