<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style:
 normal;">Casos|DoseTH9|DoseTH6|DoseTH3|DoseTC3|DoseTC6|DoseTC9</div><div>54020104|930|900|900|390|1170|2700</div><div>54020178|1860|930|900|420|840|630</div><div>54020303|1860|2790|2700|1620|1440|1530</div><div>54020492|930|930|900|420|840|720</div><div>54020637|1080|480|870|2970|2700|2520</div><div>54020698|2790|1590|930|390|720|2340</div><div>54020714|930|930|900|390|390|390</div><div>54030032|1860|750|780|720|780|720</div><div>54030048|3720|3720|3600|840|840|840</div><div>54030135|780|420|60|390|390|420</div><div>54030164|2700|2790|2790|720|780|360</div><div>54030208|930|930|900|420|420|360</div><div>54030297|2700|3720|3720|1170|1170|540</div><div>54030300|1860|930|900|420|420|720</div><div>54030303|930|930|1800|420|750|780</div><div>54030338|930|900|930|390|360|390</div><div>54030344|1680|1860|1860|780|780|840</div><div>54030349|1860|1800|1800|840|780|780</div><div><span></span></div><div>54030358|360|390|270|150|150|60</div><div><br></div><div
 style="background-color: transparent;">dados=read.table("dadaos",header=T,sep="|") #<span style="font-size: 16px;">DoseTH6|DoseTH3|</span><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">com relação ao teste, quando você faz "dados[,-c(1,2,5,6,7)]", você obtém os dados sem as colunas 1,2,5,6,7, que são, respectivamente, Casos, DoseTH9, DoseTC3, DoseTC6 e DoseTC9. Daí quando você faz "dados[,-c(1,2,5,6,7)]$DoseTC3" não retorna nada porque você excluiu a coluna 5 que é DoseTC3.</div><div style="font-family: 'times new roman', 'new
 york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Não sei se é o que você precisa, mas tente</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;">wilcox.test(dados$DoseTH3,dados$DoseTC3, paired=TRUE)<br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Marley Apolinario
 Saraiva<br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> "alanarocha@sapo.pt" <alanarocha@sapo.pt><br> <b><span style="font-weight: bold;">To:</span></b> r-br <r-br@listas.c3sl.ufpr.br> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, June 21, 2013 8:11 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [R-br] erro com teste de wilcoxon<br> </font> </div> <div class="y_msg_container"><br>bom dia,<br>alguém sabe ajudar-me a padronizar estes dados em coluna?<br>Casos (nº de doente)    DoseTH9    DoseTH6    DoseTH3    DoseTC3    DoseTC6    DoseTC9<br>54020104   
 930    900    900    390    1.170,00    2.700,00<br>54020178    1.860,00    930    900    420    840    630<br>54020303    1.860,00    2.790,00    2.700,00    1.620,00    1.440,00    1.530,00<br>54020492    930    930    900    420    840    720<br>54020637    1.080,00    480    870    2.970,00    2.700,00    2.520,00<br>54020698    2.790,00    1.590,00    930    390    720    2.340,00<br>54020714    930   
 930    900    390    390    390<br>54030032    1.860,00    750    780    720    780    720<br>54030048    3.720,00    3.720,00    3.600,00    840    840    840<br>54030135    780    420    60    390    390    420<br>54030164    2.700,00    2.790,00    2.790,00    720    780    360<br>54030208    930    930    900    420    420    360<br>54030297    2.700,00    3.720,00    3.720,00   
 1.170,00    1.170,00    540<br>54030300    1.860,00    930    900    420    420    720<br>54030303    930    930    1.800,00    420    750    780<br>54030338    930    900    930    390    360    390<br>54030344    1.680,00    1.860,00    1.860,00    780    780    840<br>54030349    1.860,00    1.800,00    1.800,00    840    780    780<br>54030358    360    390    270    150    150    60<br>e
 como corrigir o erro:<br>wilcox.test(dados[,-c(1,2,5,6,7)]$DoseTH3,<br>dados[,-c(1,2,5,6,7)]$DoseTC3, paired=TRUE)<br>Cumprimentos Ana<br><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> </div>  </div></body></html>