<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:12pt"><div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Boa tarde Pessoal!</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Preciso fazer um procedimento estatístico, no qual necessito que os grupos tenham o mesmo tamanho amostral, mas não posso perder as outras informações de cada amostra (outras variáveis). </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Por exemplo, nos dados abaixo, a variável GRUPO: o grupo 5 tem 18 amostras e o grupo 6 apenas 6 amostras. </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Gostaria de fazer um sorteio aleatório dentro do grupo 5, de tal forma a selecionar apenas 6 amostras destas, levando todas as informações junto das
outas variáveis e assim, montando um subset.</div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">tentei programar algo, mas não sai muito do lugar....por isso nem postei nada de código!</div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">desde já, muito obrigada!</div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">Simone</div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><div style="background-color:
transparent;"><div style="background-color: transparent;"><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">#=================================================</span></div><div style="background-color: transparent; font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span style="background-color: transparent;"># Os dados</span></div><div style="background-color: transparent; font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span style="background-color: transparent;"><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">dados<- read.table('dados.txt', head=T)</div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;">names(dados)</div></span></div><div style="background-color: transparent; font-family: 'Courier New', courier, monaco, monospace,
sans-serif;"><span style="background-color: transparent;">grupo valor GRUPO</span><br></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 13 2340.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 13 62.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 13 102.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 13 854.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier
New', courier, monaco, monospace, sans-serif;"> 13 492.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 13 133.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 14 2540.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 14 5140.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 14 1010.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New',
courier, monaco, monospace, sans-serif;"> 14 49999.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 14 71.4 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 14 5440.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 15 2360.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 15 439.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New',
courier, monaco, monospace, sans-serif;"> 15 79.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 15 3230.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 15 49999.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 15 675.0 5 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 16 49999.0 6 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New',
courier, monaco, monospace, sans-serif;"> 16 2610.0 6 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 16 455.0 6 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 16 954.0 6 </span></div><div style="background-color: transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 16 5630.0 6 </span></div><div style="background-color: transparent;"><span style="background-color: transparent;"><span style="background-color: transparent; font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> 16 3890.0 6 </span></span></div><div
style="background-color: transparent; font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><span style="background-color: transparent;"><span style="background-color: transparent;">#================================== </span> </span><span style="background-color: transparent;"> </span><br></div></div></div></div><div style="font-family: 'times new roman', 'new york', times, serif; background-color: transparent;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><i><b><font size="3" face="times new roman, new york, times, serif">***---***---***---***---***---***---***---***---***---***---***---***---***</font></b></i></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 3px; background-color: transparent; font-weight: bold;"><i><b><font size="3" face="times new roman, new york, times, serif">*
Simone Daniela Sartorio</font></b></i></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><font face="times new roman, new york, times, serif">* <span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>Professora Adjunta I da UFSCar, Centro de Ciências Agrárias, Campus Araras/SP.</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><font face="times new roman, new york, times, serif">*<span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>Doutora e Mestre em Estatística e Experimentação Agronômica - ESALQ/USP;</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><font face="times new roman, new york, times, serif">* <span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>Licenciada em Matemática - UNESP/Rio Claro.</font></div><div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><font face="times
new roman, new york, times, serif">* <span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>Contatos: </font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 13px; background-color: transparent;"><font face="times new roman, new york, times, serif">*<span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>tel: (19)3543-2614, ramal 2664</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 13px; background-color: transparent;"><font face="times new roman, new york, times, serif">*<span class="yiv178411697Apple-tab-span" style="white-space: pre;"> </span>cel: (19)8182-0586 - Tim</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 13px; background-color: transparent;"><b style="line-height: 1.22;"><i><font size="3" face="Times New
Roman">***---***---***---***---***---***---***---***---***---***---***---***---***</font></i></b></div><div style="font-family: 'Times New Roman'; font-size: 3px; background-color: transparent; font-weight: bold;"><b><font size="3" face="Times New Roman"><font color="#bf00bf" size="1"><span style="font-family: 'times new roman';"><i></i></span></font></font><div><font size="3" face="Times New Roman"><i><span class="yiv178411697tab"><span class="yiv178411697tab"><var id="yiv178411697yui-ie-cursor"></var> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span
class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> <span class="yiv178411697tab"> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>Tenha um bom dia! </i><font face="Courier New, courier, monaco, monospace,
sans-serif">;)</font></font></div></b></div></div> </div></body></html>