<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Outra opção também, é usar o seguinte:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2></FONT></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 2px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2>cor.test(x,y,method='pearson')$p.value</FONT></SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 2px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2></FONT></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 2px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 2px; RIGHT: auto"><SPAN style="RIGHT: auto"><FONT size=2>Só vai mostrar o p-valor do teste.</FONT> </SPAN></div>
<DIV></DIV>
<DIV style="RIGHT: auto"> <VAR id=yui-ie-cursor></VAR></DIV>
<div style="RIGHT: auto">Att,<BR> <BR>Guilherme Parreira da Silva<BR>Graduando de Estatística - UFPR<BR>(41) 8422-0925<BR></div>
<DIV style="FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Emmanuel Arnhold <emmanuelarnhold@yahoo.com.br><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> "r-br@listas.c3sl.ufpr.br" <r-br@listas.c3sl.ufpr.br> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, October 2, 2012 4:31:17 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [R-br] correlação de Pearson<BR></FONT></DIV><BR>
<META content=off http-equiv=x-dns-prefetch-control>
<DIV style="RIGHT: auto" id=yiv1510585913>
<DIV style="RIGHT: auto">
<DIV style="BACKGROUND-COLOR: #fff; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; COLOR: #000; FONT-SIZE: 10pt">
<DIV><SPAN>
<DIV><FONT size=2>install.packages("ds")</FONT></DIV>
<DIV><FONT size=2>require(ds)</FONT></DIV>
<DIV><FONT size=2><BR></FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>var1=c(10,13,14,16,18,22,29,28,35)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>var2=c(0.5,1,1.5,2,2.5,3,3.5,4,4.5)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>var3=c(102,NA,106,91,109,108,120,101,NA)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>var4=c(500,456,423,378,312,263,200,120,50)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>var5=c(18,09,22,NA,26,59,10,NA,96)</FONT></DIV>
<DIV><FONT size=2><BR></FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>table=data.frame(var1,var2,var3,var4,var5)</FONT></DIV>
<DIV><FONT size=2><BR></FONT></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span><FONT size=2></FONT></SPAN></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>r1<-dscor(table)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>r1</FONT></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span><FONT size=2></FONT></SPAN></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>r2<-dscor(table, option=2)</FONT></DIV>
<DIV><FONT size=2><SPAN style="WHITE-SPACE: pre" class=yiv1510585913Apple-tab-span></SPAN>r2</FONT></DIV>
<DIV style="FONT-FAMILY: 'Courier New', courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt"><BR></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: 'Courier New', courier, monaco, monospace, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 13px">?dscor</DIV></SPAN></DIV>
<DIV style="FONT-FAMILY: 'Courier New', courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt"><BR></DIV>
<DIV style="FONT-FAMILY: 'Courier New', courier, monaco, monospace, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: 'times new roman', 'new york', times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">De:</SPAN></B> marcelo claro de souza <marcelo.claro.souza@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> Terça-feira, 2 de Outubro de 2012 13:54<BR><B><SPAN style="FONT-WEIGHT: bold">Assunto:</SPAN></B> [R-br] correlação de Pearson<BR></FONT></DIV><BR>
<DIV style="RIGHT: auto" id=yiv1510585913>Boa tarde pessoal<BR>Montei uma matriz de correlação utilizando cor(dados, method='pearson')<BR>Gostaria de saber se existe alguma função que teste automaticamente o coeficiente de correlação entre as variáveis sem precisar rodar manualmente cor.test(x,y,method='pearson'), afinal são quase 30 variáveis que estou correlacionando.<BR>Muito obrigado pela ajuda.<BR>Abraço<BR><BR></DIV><BR>_______________________________________________<BR>R-br mailing list<BR><A href="mailto:R-br@listas.c3sl.ufpr.br" rel=nofollow target=_blank ymailto="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" rel=nofollow 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" rel=nofollow target=_blank>http://www.leg.ufpr.br/r-br-guia</A>) e forneça código
mínimo reproduzível.<BR><BR></DIV></DIV></DIV></DIV></DIV>
<META content=on http-equiv=x-dns-prefetch-control><BR>_______________________________________________<BR>R-br mailing list<BR><A href="mailto:R-br@listas.c3sl.ufpr.br" ymailto="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></div></body></html>