<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Alice,</div><div><br></div><div>se quiser algum material de referência, sugiro estes a seguir, dentre outros:</div><div><br></div><div><a href="http://staff.pubhealth.ku.dk/~tag/Teaching/share/R-tutorials/ConfidenceIntervals.html" rel="nofollow" target="_blank">http://staff.pubhealth.ku.dk/~tag/Teaching/share/R-tutorials/ConfidenceIntervals.html</a></div><div><br></div><div><a href="http://rcompanion.org/handbook/C_03.html" rel="nofollow" target="_blank" class="enhancr_card_2686686919">R Handbook: Confidence Intervals</a><div><br></div></div><div><a href="https://www.r-bloggers.com/interval-estimation-of-the-population-mean/" rel="nofollow" target="_blank" class="enhancr_card_2501509420">Interval Estimation of the Population Mean</a></div><div><br></div><div id="ydpdfc4d9a4enhancr_card_2501509420" class="ydpdfc4d9a4yahoo-link-enhancr-card ydpdfc4d9a4yahoo-link-enhancr-not-allow-cover ydpdfc4d9a4ymail-preserve-class ydpdfc4d9a4ymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;" data-url="https://www.r-bloggers.com/interval-estimation-of-the-population-mean/" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="https://www.r-bloggers.com/interval-estimation-of-the-population-mean/" style="text-decoration:none !important;color:#000 !important;" class="ydpdfc4d9a4yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydpdfc4d9a4card-wrapper ydpdfc4d9a4yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400"><table class="ydpdfc4d9a4card ydpdfc4d9a4yahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><table class="ydpdfc4d9a4card-info ydpdfc4d9a4yahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-repeat: repeat; background-attachment: scroll; background-image: none; background-size: auto auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;border-radius:0 0 2px 0;"><h2 class="ydpdfc4d9a4card-title" style="font-size:14px;line-height:19px;margin:0 0 6px 0;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;word-break:break-word;color:#26282a;">Interval Estimation of the Population Mean</h2><p class="ydpdfc4d9a4card-description" style="font-size:12px;line-height:16px;margin:0px;color:#979ba7;word-break:break-word;">Interval estimation of the population <g class="gr_ gr_64 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" id="64" data-gr-id="64">mean</g> can be computed from the functions of the following R packages<g class="gr_ gr_65 gr-alert gr_gramm gr_inline_cards gr_run_anim Style replaceWithoutSep" id="65" data-gr-id="65">:stats</g> ...</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><div><br></div><div id="ydp780fc080enhancr_card_2686686919" class="ydp780fc080yahoo-link-enhancr-card ydp780fc080yahoo-link-enhancr-not-allow-cover ydp780fc080ymail-preserve-class ydp780fc080ymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;" data-url="http://rcompanion.org/handbook/C_03.html" data-type="YENHANCER" data-size="MEDIUM" contenteditable="false"><a href="http://rcompanion.org/handbook/C_03.html" style="text-decoration:none !important;color:#000 !important;" class="ydp780fc080yahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table class="ydp780fc080card-wrapper ydp780fc080yahoo-ignore-table" style="max-width:400px;" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400"><table class="ydp780fc080card ydp780fc080yahoo-ignore-table" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224, 228, 233);border-radius:2px;" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><table class="ydp780fc080card-info ydp780fc080yahoo-ignore-table" style="background-color: rgb(255, 255, 255); background-repeat: repeat; background-attachment: scroll; background-image: none; background-size: auto auto; position: relative; z-index: 2; width: 100%; max-width: 400px; border-radius: 0px 0px 2px 2px; border-top: 1px solid rgb(224, 228, 233);" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;border-radius:0 0 2px 0;"><h2 class="ydp780fc080card-title" style="font-size:14px;line-height:19px;margin:0 0 6px 0;font-family:"Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;word-break:break-word;color:#26282a;">R Handbook: Confidence Intervals</h2><p class="ydp780fc080card-description" style="font-size:12px;line-height:16px;margin:0px;color:#979ba7;word-break:break-word;">Clear examples in R. Confidence intervals for means; Confidence intervals by bootstrap; Exercises D</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div>
<div><br></div><div>att,</div><div>Rodrigo<br></div>
<div id="yahoo_quoted_2970956923" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Em quinta-feira, 29 de março de 2018 02:34:35 BRT, Rodrigo Araújo e Castro <roacastro87@yahoo.com.br> escreveu:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv4494122754"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;"><div>Boa noite,</div><div><br clear="none"></div><div>com base nos conjuntos de dados executei o comando t.test (<span>grupo1,grupo2</span>) para executar o teste T (não necessita de pacote) e não deu erro. O resultado foi o seguinte:</div><div><br clear="none"></div><div><span><i> Welch Two Sample t-test<br clear="none"><br clear="none">data: grupo1 and grupo2<br clear="none">t = 0.50985, df = 37.711, p-value = 0.6131<br clear="none">alternative hypothesis: true difference in means is not equal to 0<br clear="none">95 percent confidence interval:<br clear="none"> -0.3967069 0.6637069<br clear="none">sample estimates:<br clear="none">mean of x mean of y <br clear="none"> 4.8600 4.7265 <br clear="none"></i><br clear="none"></span></div><div><br clear="none"></div><div>Se ainda quiser calcular o intervalo de confiança de cada grupo, pode utilizar, pode exemplo, o pacote Publish (após instalar) da sequinte forma:</div><div><br clear="none"></div><div><i>install.packages("Publish", dependencies=T)</i></div><div><i><br clear="none"></i></div><div><i><span>require(Publish)<br clear="none"><br clear="none">ci.mean(grupo1)<br clear="none">ci.mean(grupo2)</span></i></div><div><span><br clear="none"></span></div><div><span>Conseguiu resolver seu problema? Se não, favor detalhar o que faltou para que possamos ajudá-lo.</span></div><div><span><br clear="none"></span></div><div><span>att,</span></div><div><span>Rodrigo</span> </div><div><br clear="none"></div>
</div><div class="yiv4494122754yahoo_quoted" id="yiv4494122754yahoo_quoted_3017236169">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Em quarta-feira, 28 de março de 2018 22:13:33 BRT, Alice Peres via R-br <r-br@listas.c3sl.ufpr.br> escreveu:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div><div class="yiv4494122754yqt6496929358" id="yiv4494122754yqt91286"><div id="yiv4494122754"><div dir="ltr"><font face="trebuchet ms, sans-serif">Olá, boa noite. Eu estou com dificuldade para gerar o intervalo de confiança para a diferença de média dos dois seguintes grupos. Lembrando que são independentes. Eu calculei o teste t no R, mas está dando um erro. Preciso instalar algum pacote ?</font><div><font face="trebuchet ms, sans-serif"><br clear="none"></font><div><font face="trebuchet ms, sans-serif">grupo1=c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.98,4.90,5.75,5.36,3.48,4.69,4.44,4.89,4.71,5.48,4.32,5.15,6.34)</font></div><div><font face="trebuchet ms, sans-serif"><br clear="none"></font></div><div><font face="trebuchet ms, sans-serif">grupo2=c(4.17,3.05,5.18,4.01,6.11,4.10,5.17,3.57,5.33,5.59,4.66,5.58,3.66,4.50,3.90,4.61,5.62,4.53,6.05,5.14)</font></div></div></div></div></div>_______________________________________________<br clear="none">R-br mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br clear="none">Leia o guia de postagem (<a rel="nofollow" shape="rect" target="_blank" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forne�a c�digo m�nimo reproduz�vel.</div>
</div>
</div></div></div></div></div>
</div>
</div></div></body></html>