<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Por exemplo:</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">x1 <- 1:10</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">x2 <-runif(10)</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">y <- sort(rnorm(10))</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">lm1 <- lm(y~x1+offset(x2))</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto">Nesse caso eu tenho uma regressão de y em função de x1 e x2, porém x2 foi declarada como um offset, ou seja, seu coeficiente deverá ser 1 obrigatoriamente. </div>
<div style="RIGHT: auto">Eu queria saber como a função lm faz para ajustar esse modelo (como ficaria o estimador dos parâmetros nesse caso), fiquei curioso porque em outros softwares </div>
<div style="RIGHT: auto">que já usei so consegui ajustar modelos assim utilizando algoritmos de regressão não linear. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Gustavo Marcatti</div>
<div style="RIGHT: auto">Engenharia Florestal - UFV<VAR id=yui-ie-cursor></VAR></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contentEditable=false readonly="true"></DIV><B><SPAN style="FONT-WEIGHT: bold">De:</SPAN></B> Walmes Zeviani <walmeszeviani@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> r-br@listas.c3sl.ufpr.br; Gustavo Marcatti <vgp.gustavo@yahoo.com.br><BR><B><SPAN style="FONT-WEIGHT: bold">Enviadas:</SPAN></B> Sexta-feira, 23 de Setembro de 2011 13:25<BR><B><SPAN style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [R-br] Offset da função lm<BR></FONT><BR>
<META content=off http-equiv=x-dns-prefetch-control>
<DIV id=yiv101241322><FONT face="trebuchet ms,sans-serif">Algum exemplo reproduzível como ponto de partida?<BR><BR>À disposição.<BR>Walmes.<BR><BR clear=all></FONT><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">==========================================================================</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">Walmes Marques Zeviani</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W)</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">Departamento de Estatística - Universidade Federal do Paraná</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">fone: (+55) 41 3361 3573</SPAN><BR style="FONT-FAMILY: trebuchet ms,
 sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">VoIP: (3361 3600) 1053 1173</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">e-mail: <A href="mailto:walmes@ufpr.br" rel=nofollow target=_blank ymailto="mailto:walmes@ufpr.br">walmes@ufpr.br</A></SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">twitter: @walmeszeviani</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">homepage: <A href="http://www.leg.ufpr.br/~walmes" rel=nofollow target=_blank>http://www.leg.ufpr.br/~walmes</A></SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms, sans-serif">linux user number: 531218</SPAN><BR style="FONT-FAMILY: trebuchet ms, sans-serif"><SPAN style="FONT-FAMILY: trebuchet ms,
 sans-serif">==========================================================================</SPAN><BR></DIV>
<META content=on http-equiv=x-dns-prefetch-control><BR><BR></DIV></DIV></div></body></html>