Essa lista está quase igual o stackoverflow: quando vem uma pergunta
filezinho para responder vem um e atravessa!! heehhe

Brincadeira gente. Boa resposta.


Flavio Barros
[image: 
Facebook]<http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fflavio.barros.1650%3Fref%3Dtn_tnmn&sn=>
[image:
LinkedIn]<http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D61839390%26trk%3Dtab_pro&sn=>
Contact me: [image: Google Talk] [email protected]
“"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...
[<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=>
more<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=>
]”  Get this email app!
<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=>

 Create your free signature:
<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=>
CLICK
HERE!<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=>



2013/10/29 Manoel Galdino <[email protected]>

> Mas parece que você quer fazer na verdade:
>
> b1$tipo <- as.factor(b1$tipo)
>
>  m1 <- m(trh~mus+tipo, data=b1))
>
> Isso fará com que a variável tipo entre como preditora binária.
>
>
> 2013/10/29 Edson Lira <[email protected]>
>
>> Valeu prof. Paulo, já usei o subset em outras rotinas, muito obrigado.
>>
>> [  ]'s.
>> Edson Lira
>> Estatístico
>> Manaus-Amazonas
>>
>>
>>   Em Terça-feira, 29 de Outubro de 2013 16:23, Paulo Justiniano <
>> [email protected]> escreveu:
>>  m1<-lm(trh~mus+tipo, data=subset(b1, tipo==0))
>>
>>
>>
>> On Tue, 29 Oct 2013, Edson Lira wrote:
>>
>> > Caros amigos, estou tentando fazer um estudo de regressão com duas
>> variáveis
>> > preditoras. Dados e comandos abaixo:
>> >
>> > mus<-c(2,6,8,3,2,7,9,8,4,6)
>> >  tr<-c("e","m","e","m","e","e","m","m","e","e")
>> >  trh<-c(2.9,3.0,4.8,1.8,2.9,4.9,4.2,4.8,4.4,4.5)
>> >  tipo<-ifelse(tr=="e",1,0) #codificar a variável tr, 1=eletrico
>> 2=mecânico
>> >
>> > b1<-data.frame(mus,tipo,trh)
>> > Quero fazer a análise  usando a variável tipo.
>> >
>> > São dois modelos: um quando o e=1 e o outro e=0.
>> >
>> >
>> >  Não estou conseguindo implementar, alguém poderia dar alguma sugestão?
>> > [  ]'s.
>> >
>> > Edson Lira
>> > Estatístico
>> > Manaus-Amazonas
>> >
>> >
>>
>>
>>
>> _______________________________________________
>> R-br mailing list
>> [email protected]
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>> código mínimo reproduzível.
>>
>
>
>
> --
> Manoel Galdino
> https://sites.google.com/site/galdinomcz/
>
> _______________________________________________
> R-br mailing list
> [email protected]
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
> código mínimo reproduzível.
>
_______________________________________________
R-br mailing list
[email protected]
https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código 
mínimo reproduzível.

Responder a