<font color="#000066"><font face="courier new,monospace">Amigos de R,</font></font><div><font color="#000066"><font face="courier new,monospace"><br></font></font></div><div><font color="#000066"><font face="courier new,monospace">Andei procurando RSiteSearch funçoes sobre a correlação de spearman. Eu achei diversas funçoes que fazem o rho de spearman e algumas extensões e correções, mas não consegui achar nenhuma que colocasse a linha da correlação em um grafico, a semelhança da reta na correlação de pearson. </font></font></div>
<div><font color="#000066"><font face="courier new,monospace"><br></font></font></div><div><font color="#000066"><font face="courier new,monospace">Alguem conhece alguma função ou tem algum script que faz isso?</font></font></div>
<div><font color="#000066"><font face="courier new,monospace"><br></font></font></div><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; "><span class="Apple-style-span" style="text-align: -webkit-left; "><pre tabindex="0" class="GD40030CLR" style="font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-bottom: 0px; line-height: 1.3; ">
v1 v2
1 26 0.000
2 73 0.000
3 76 143.072
4 72 172.587
5 59 123.325
6 78 142.367
7 73 190.804
8 77 14.497
9 63 120.499
10 72 165.570
11 73 152.220
12 75 170.482
13 73 137.436
14 71 169.079
15 72 170.482
16 65 160.654
17 76 0.000
18 28 0.000
19 61 107.763
20 66 8.643
21 68 133.911
22 65 113.427
23 27 0.000
24 71 104.929
25 73 116.257
26 68 0.000
27 75 142.367
28 63 0.000
29 77 7.168
30 66 127.561
31 66 0.000
32 60 144.480
33 74 136.731
34 65 32.527
35 74 145.184
36 65 112.012
37 67 145.184
38 81 103.511
39 82 3.448
40 72 130.384
41 66 244.553
42 73 0.000
43 65 0.000
44 57 0.000
45 63 105.637
46 60 98.546
47 76 137.436
48 68 1.558
49 26 0.000
50 72 0.000
51 64 30.378
52 76 0.000
53 25 3.072
54 58 0.000
55 28 0.000
56 69 72.592
57 26 0.000
58 27 2.318
59 26 0.790
60 63 0.000
61 71 121.912
62 60 41.808
63 33 0.000
64 31 0.000
65 71 0.000
66 24 0.000
67 69 0.000
68 69 22.468
69 35 0.000
70 65 33.243
71 78 7.906
72 31 0.000
73 74 0.000
74 71 4.943
75 65 38.244
76 34 3.448
77 19 11.944
78 35 19.577
79 26 0.000
80 35 197.415
81 13 0.000
82 35 0.000
83 35 0.000
84 28 0.000
85 17 30.378
86 37 0.000</pre><pre tabindex="0" class="GD40030CLR" style="font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-bottom: 0px; line-height: 1.3; ">
<br></pre><pre tabindex="0" class="GD40030CLR" style="font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-bottom: 0px; line-height: 1.3; ">
library('Hmisc')</pre><pre tabindex="0" class="GD40030CLR" style="outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; margin-top: 0px; margin-bottom: 0px; ">
<font class="Apple-style-span" face="'DejaVu Sans Mono'"><span class="Apple-style-span" style="font-size: 14px; line-height: 15px; white-space: pre-wrap;"><br></span></font></pre><pre tabindex="0" class="GD40030CLR" style="outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; margin-top: 0px; margin-bottom: 0px; ">
<font class="Apple-style-span" face="'DejaVu Sans Mono'"><span class="Apple-style-span" style="font-size: 14px; line-height: 15px; white-space: pre-wrap;">spearman2(v1 ~ v2, data=z, p=2)</span></font></pre></span></span></div>
<div><font color="#000066"><font face="courier new,monospace"><br></font></font></div><div><span class="Apple-style-span" style="border-collapse: separate; font-family: Arial; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: 'DejaVu Sans Mono'; font-size: 13px; line-height: 17px; text-align: -webkit-left; white-space: pre-wrap; "><pre tabindex="0" class="GD40030CLR" style="font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; outline-style: none; outline-width: initial; outline-color: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; white-space: pre-wrap !important; margin-top: 0px; margin-bottom: 0px; line-height: 1.3; ">
Spearman rho^2 Response variable:v1
rho2 F df1 df2 P Adjusted rho2 n
v2 0.181 9.16 2 83 0.0003 0.161 86
<br></pre></span></span></div><div><font color="#000066"><font face="courier new,monospace"><br clear="all"></font></font>Abraço forte e que a força esteja com você,<br><br>Dr. Pedro Emmanuel A. A. do Brasil<br>Instituto de Pesquisa Clínica Evandro Chagas<br>
Fundação Oswaldo Cruz<br>Rio de Janeiro - Brasil<br>Av. Brasil 4365, <br>CEP 21040-360,<br>Tel 55 21 3865-9648<br>email: <a href="mailto:pedro.brasil@ipec.fiocruz.br" target="_blank">pedro.brasil@ipec.fiocruz.br</a><br>email: <a href="mailto:emmanuel.brasil@gmail.com" target="_blank">emmanuel.brasil@gmail.com</a><br>
<br>---Apoio aos softwares livres<br><a href="http://www.zotero.org" target="_blank">www.zotero.org</a> - gerenciamento de referências bibliográficas. <br><a href="http://www.broffice.org" target="_blank">www.broffice.org</a> ou <a href="http://www.libreoffice.org/" target="_blank">www.libreoffice.org</a> - textos, planilhas ou apresentações.<br>
<a href="http://www.epidata.dk" target="_blank">www.epidata.dk</a> - entrada de dados.<br><a href="http://www.r-project.org" target="_blank">www.r-project.org</a> - análise de dados.<br><a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a> - sistema operacional<br>
</div>