<div dir="ltr">Essa lista está quase igual o stackoverflow: quando vem uma pergunta filezinho para responder vem um e atravessa!! heehhe<div><br></div><div>Brincadeira gente. Boa resposta.<br><br><br><div id="WISESTAMP_SIG_gmail_session">
<div style="font-size:13px;font-family:Verdana,Arial,Helvetica,sans-serif">
<div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0">Flavio Barros</p><div style="clear:both"></div></div><a href="http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fflavio.barros.1650%3Fref%3Dtn_tnmn&sn=" style="text-decoration:underline"><img width="16" height="16" alt="Facebook" style="padding: 0px 0px 5px 0px; vertical-align: middle;" border="0" src="https://s3.amazonaws.com/images.wisestamp.com/facebook.png"></a> <a href="http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D61839390%26trk%3Dtab_pro&sn=" style="text-decoration:underline"><img width="16" height="16" alt="LinkedIn" style="padding: 0px 0px 5px 0px; vertical-align: middle;" border="0" src="https://s3.amazonaws.com/images.wisestamp.com/linkedin.png"></a><br>
<span style="color:gray">Contact me: </span> <img width="16" height="16" alt="Google Talk" style="padding: 0px 0px 5px 0px; vertical-align: middle;" border="0" src="https://s3.amazonaws.com/images.wisestamp.com/gtalk.png"> <a href="mailto:flaviomargarito@gmail.com">flaviomargarito@gmail.com</a><br>
<div style="max-width:469px;padding:0.5em 0 0.5em"><div style="border:1px solid #aaaaaa;padding-bottom:0.5em;background:white"><table width="100%" style="border:0;padding:3px 3px 0 3px;font-size:80%" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td width="1%" style="font-weight:bold;font:inherit;line-height:80%;font-family:Times New Roman;color:#aaaaaa">“</td><td style="padding:1px 8px 4px 8px;font:inherit"><a href="http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.quotesdaddy.com%2Fquote%2F563482%2Fsteve-jobs%2Fyour-time-is-limited-so-dont-waste-it-living-someone&sn=" style="text-decoration:none" target="_blank"><span style="color:black">"Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma - which is living with the results of other people's thinking. Don't let the noise of other's opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want t... [</span></a><a href="http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.quotesdaddy.com%2Fquote%2F563482%2Fsteve-jobs%2Fyour-time-is-limited-so-dont-waste-it-living-someone&sn=" target="_blank">more</a>]</td>
<td width="1%" style="font-weight:bold;font:inherit;line-height:80%;font-family:Times New Roman;color:#aaaaaa;padding-right:6px">”</td></tr></tbody></table><span style="float:right;padding-right:0.5em"><span style="text-decoration:none;background:white;font-family:arial,sans-serif;color:gray;font-size:80%"> <a href="http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.wisestamp.com%2Fapps%2Fquotes%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_term%3Dquotes%26utm_campaign%3Dapps&sn=" target="_blank" style="color:gray;text-decoration:none">Get this email app! </a> </span></span></div>
</div></div>
<div style="width:auto;padding-top:2px;font-size:80%;border-top:1px solid #eeeeee;margin-top:10px">
<a style="color:#6f6f6f;text-decoration:none" href="http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fpromo%3D33%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_33&sn=">
<span style="color:#6f6f6f">Create your free signature:</span>
</a>
<span style="color:#3f48cc">
<a style="color:#3f48cc" href="http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fpromo%3D33%26amp%3Bdest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_33&sn=">CLICK HERE!</a>
</span></div>
<img src="https://wisestamp.appspot.com/pixview.gif?p=chrome&v=3.20.0&t=1383097776106&u=26e11c0b0c4ca423" width="1" height="1"></div></div><font face="yw-594c7e313746b22beb7af390dfee778f98af89b0-5053a244082de70cce22450b65f97989--o" style></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/29 Manoel Galdino <span dir="ltr"><<a href="mailto:mcz.fea@gmail.com" target="_blank">mcz.fea@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Mas parece que você quer fazer na verdade:<div><br></div><div>b1$tipo <- as.factor(b1$tipo)<br><div><br><div> <span style="font-family:arial,sans-serif;font-size:13px">m1 <- m(trh~mus+tipo, data=b1))</span></div>
</div></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Isso fará com que a variável tipo entre como preditora binária.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/29 Edson Lira <span dir="ltr"><<a href="mailto:edinhoestat@yahoo.com.br" target="_blank">edinhoestat@yahoo.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div><span>Valeu prof. Paulo, já usei o subset em outras rotinas, muito obrigado.</span></div><div class="im">
<div>
<div></div><div> </div><div>[ ]'s.</div><div>Edson Lira<br>Estatístico<br>Manaus-Amazonas</div></div></div><div style="display:block"> <br> <br> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt">
<div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> Em Terça-feira, 29 de Outubro de 2013 16:23, Paulo Justiniano <<a href="mailto:paulojus@leg.ufpr.br" target="_blank">paulojus@leg.ufpr.br</a>> escreveu:<br>
</font> </div><div><div class="h5"><div><div> <div>m1<-lm(trh~mus+tipo, data=subset(b1, tipo==0))<br clear="none"><br clear="none"><br clear="none"><div><br clear="none">On Tue, 29 Oct 2013, Edson Lira wrote:<br clear="none">
<br clear="none">
> Caros amigos, estou tentando fazer um estudo de regressão com duas variáveis<br clear="none">> preditoras. Dados e comandos abaixo:<br clear="none">> <br clear="none">> mus<-c(2,6,8,3,2,7,9,8,4,6)<br clear="none">
> tr<-c("e","m","e","m","e","e","m","m","e","e")<br clear="none">> trh<-c(2.9,3.0,4.8,1.8,2.9,4.9,4.2,4.8,4.4,4.5)<br clear="none">
> tipo<-ifelse(tr=="e",1,0) #codificar a variável tr, 1=eletrico 2=mecânico<br clear="none">> <br clear="none">> b1<-data.frame(mus,tipo,trh)<br clear="none">> Quero fazer a análise usando a variável tipo. <br clear="none">
> <br clear="none">> São dois modelos: um quando o e=1 e o outro e=0.<br clear="none">> <br clear="none">> <br clear="none">> Não estou conseguindo
implementar, alguém poderia dar alguma sugestão?<br clear="none">> [ ]'s.<br clear="none">> <br clear="none">> Edson Lira<br clear="none">> Estatístico<br clear="none">> Manaus-Amazonas<br clear="none">
> <br clear="none">></div><br><br></div> </div></div></div></div></div> </div> </div> </div></div><br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">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.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote>
</div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>
Manoel Galdino<br><a href="https://sites.google.com/site/galdinomcz/" target="_blank">https://sites.google.com/site/galdinomcz/</a><br>
</font></span></div>
<br>_______________________________________________<br>
R-br mailing list<br>
<a 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></blockquote></div><br></div>