<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1511207855320_2550">Boa tarde, pessoal.</div><div id="yui_3_16_0_ym19_1_1511207855320_2550"><br></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr">Alguém por acaso sabe com se trabalha com modelos "parecidos" com CLIFF-ORD usando spreg do pacote sphet? Sei que o Stata faz, mas gostaria de fazer no R. Estou trabalhando com vários tipos de modelos espaciais (na realidade, quase todos do pacote sphet) e esse me gerou muita dúvida, pois preciso de que uma das variaveis explicativas com e sem peso espacial da matriz W.</div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr">Por exemplo, acrescentando peso espacial a uma das variaveis explicativas do modelo.</div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="box-sizing: inherit; font-weight: 700; color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_5827">library</span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_5828">(spdep)
data(columbus)
listw<-nb2listw(col.gal.nb)</span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_20356"><font color="#00193a" face="monospace" id="yui_3_16_0_ym19_1_1511207855320_20347"><span style="font-size: 12px; white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_20348">res1<- spreg(CRIME~HOVAL + INC+ INC, data=columbus , listw= listw, het = TRUE, verbose = FALSE,model="sarar")
res2<- spreg(CRIME~HOVAL + INC+ WINC, data=columbus , listw= listw, het = </span></font></span><span style="box-sizing: inherit; color: rgb(0, 72, 171); font-family: monospace; font-size: 12px; white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_5829">TRUE</span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_5830">, verbose = </span><span style="box-sizing: inherit; color: rgb(0, 72, 171); font-family: monospace; font-size: 12px; white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_5831">FALSE,model="sarar"</span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_5832">) ### WINC é o peso espacial multiplicado #pelo variavel INC, especie de W*INC</span><br id="yui_3_16_0_ym19_1_1511207855320_13872"></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);"><br></span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_21938">ou mesmo</span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);"><br></span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_15477">res3<- spreg(CRIME~HOVAL + INC+WINC, data=columbus , listw= listw, het = </span><span style="box-sizing: inherit; color: rgb(0, 72, 171); font-family: monospace; font-size: 12px; white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_15478">TRUE</span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_15479">, verbose = </span><span style="box-sizing: inherit; color: rgb(0, 72, 171); font-family: monospace; font-size: 12px; white-space: pre-wrap;" id="yui_3_16_0_ym19_1_1511207855320_15480">FALSE,model="error"</span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(235, 244, 247);" id="yui_3_16_0_ym19_1_1511207855320_15481">) </span><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);"><br></span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><span style="color: rgb(0, 25, 58); font-family: monospace; font-size: 12px; white-space:pre-wrap; background-color: rgb(235, 244, 247);"><br></span></div><div id="yui_3_16_0_ym19_1_1511207855320_2550" dir="ltr"><br></div></div></body></html>