<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="yiv8599546326"><div id="yui_3_16_0_ym19_1_1499710129168_11705"><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1499710129168_11704"><div><span></span></div> <div class="yiv8599546326qtdSeparateBR" id="yui_3_16_0_ym19_1_1499710129168_11703" dir="ltr"><br clear="none"><div id="yui_3_16_0_ym19_1_1499710129168_11859">Oi Elias. <br></div><div id="yui_3_16_0_ym19_1_1499710129168_11860"><br></div><div id="yui_3_16_0_ym19_1_1499710129168_11702">Pois é, olha só o que aparece:</div><div id="yui_3_16_0_ym19_1_1499710129168_11969"><br></div><div id="yui_3_16_0_ym19_1_1499710129168_11970"><br></div><div id="yui_3_16_0_ym19_1_1499710129168_11971"><br></div><div id="yui_3_16_0_ym19_1_1499710129168_11821" dir="ltr">este.nb= read.gal("municipios.gal" ,     override.id=TRUE)<br id="yui_3_16_0_ym19_1_1499710129168_11830"> print(este.nb)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11883"><br></div><pre tabindex="0" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 15px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1499710129168_11891"><span style="color: blue; white-space:pre-wrap; -webkit-user-select: text;" id="yui_3_16_0_ym19_1_1499710129168_11892">> </span><span style="color: blue;" id="yui_3_16_0_ym19_1_1499710129168_11893">print(este.nb)
</span>Neighbour list object:
Number of regions: 5564 
Number of nonzero links: 32228 
Percentage nonzero weights: 0.104102 
Average number of links: 5.792236 
3 regions with no links:</pre><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11920"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11921">#########<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11932"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11923"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11922">w.nb<-nb2listw(este.nb,style="W", zero.policy=TRUE)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1499710129168_11924"><br></div><div id="yui_3_16_0_ym19_1_1499710129168_11706"><br></div><table class="yahoo-compose-table-card" style="font-family: 'Lucida Console' !important; font-size: 10pt !important; font-style: inherit !important; font-variant: inherit !important; font-weight: inherit !important; line-height: inherit !important; padding-left: 6px; padding-bottom: 8px; border: none; outline: none; word-wrap: break-word; cursor: text; white-space: pre-wrap !important; color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); width: 903px;" id="yui_3_16_0_ym19_1_1499710129168_11740" cellspacing="0" cellpadding="0"><tbody id="yui_3_16_0_ym19_1_1499710129168_11741"><tr id="yui_3_16_0_ym19_1_1499710129168_11742"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_11743" align="left"><pre tabindex="0" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 1.2;" id="yui_3_16_0_ym19_1_1499710129168_11744"><span style="color: blue; white-space:pre-wrap; -webkit-user-select: text;" id="yui_3_16_0_ym19_1_1499710129168_11745">> </span><span style="color: blue;" id="yui_3_16_0_ym19_1_1499710129168_11746">print(w.nb, zero.policy=TRUE)
</span>Characteristics of weights list object:
Neighbour list object:
Number of regions: 5564 
Number of nonzero links: 32228 
Percentage nonzero weights: 0.104102 
Average number of links: 5.792236 
3 regions with no links:
3520400 5300108 2605459

Weights style: W 
Weights constants summary:
     n       nn   S0       S1       S2
W 5561 30924721 5561 2044.729 23174.73
</pre></td></tr><tr id="yui_3_16_0_ym19_1_1499710129168_11747"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_11748" align="left"><br id="yui_3_16_0_ym19_1_1499710129168_11749"></td></tr><tr id="yui_3_16_0_ym19_1_1499710129168_11750"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_11751" align="left"><table style="width: 903px;" class="yahoo-compose-table-card" id="yui_3_16_0_ym19_1_1499710129168_11752" cellspacing="0" cellpadding="0"><tbody id="yui_3_16_0_ym19_1_1499710129168_11753"><tr id="yui_3_16_0_ym19_1_1499710129168_11754"><td rowspan="1" style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_11755" width="1" height="" align="left"><div style="color: blue; white-space:pre-wrap; -webkit-user-select: text;" id="yui_3_16_0_ym19_1_1499710129168_11756" dir="ltr">>w.nb  ###se peço para aparecer o executado da erro como se vê abaixo<br><pre tabindex="0" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 15px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1499710129168_12256"><span style="color: rgb(197, 6, 11);" id="yui_3_16_0_ym19_1_1499710129168_12257">Error in print.listw(x) : 
  regions with no neighbours found, use zero.policy=TRUE<br><br><br><br><br><br>Preciso desses pesos para calcular o indice de Moran da variavel Y, que nada mais do que o Renda municipal, usando matriz de pesos w.nb<br><br><br><b id="yui_3_16_0_ym19_1_1499710129168_12455">dados<-read.table("res.csv",sep=";",dec=",",header = TRUE)<br id="yui_3_16_0_ym19_1_1499710129168_12177"><br id="yui_3_16_0_ym19_1_1499710129168_12178">head(dados)</b><br></span><br id="yui_3_16_0_ym19_1_1499710129168_12179"></pre><table class="yahoo-compose-table-card" style="font-family: 'Lucida Console' !important; font-size: 10pt !important; font-style: inherit !important; font-variant: inherit !important; font-weight: inherit !important; line-height: inherit !important; padding-left: 6px; padding-bottom: 8px; border: none; outline: none; word-wrap: break-word; cursor: text; white-space: pre-wrap !important; color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); width: 903px;" id="yui_3_16_0_ym19_1_1499710129168_12258" cellspacing="0" cellpadding="0"><tbody id="yui_3_16_0_ym19_1_1499710129168_12259"><tr id="yui_3_16_0_ym19_1_1499710129168_12260"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_12261" align="left"><pre tabindex="0" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 1.2;" id="yui_3_16_0_ym19_1_1499710129168_12262">    MUNICIPIO         Y     PIBa       PIB     cod
1   MANCIO LIMA  591239.9 33426.61 150136.08 1200336
2 MANOEL URBANO   58934.4 18044.54  80018.27 1200344
3  ASSIS BRASIL 1978559.5 17371.21  64601.58 1200054
4         FEIJO  285000.0 45966.75 267202.96 1200302
5        XAPURI  355711.4 55298.02 168708.32 1200708
6      TARAUACA 2852586.8 65297.63 335519.90 1200609
</pre></td></tr><tr id="yui_3_16_0_ym19_1_1499710129168_12263"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_12264" align="left"><br id="yui_3_16_0_ym19_1_1499710129168_12265"></td></tr><tr id="yui_3_16_0_ym19_1_1499710129168_12266"><td style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_12267" align="left"><table style="width: 903px;" class="yahoo-compose-table-card" id="yui_3_16_0_ym19_1_1499710129168_12268" cellspacing="0" cellpadding="0"><tbody id="yui_3_16_0_ym19_1_1499710129168_12269"><tr id="yui_3_16_0_ym19_1_1499710129168_12270"><td rowspan="1" style="font-family: 'Lucida Console'; line-height: 1.2; font-size: 10pt !important; vertical-align: top;" id="yui_3_16_0_ym19_1_1499710129168_12271" width="1" height="" align="left"><div style="color: blue; white-space:pre-wrap; -webkit-user-select: text;" id="yui_3_16_0_ym19_1_1499710129168_12272">> </div></td></tr></tbody></table></td></tr></tbody></table><pre tabindex="0" style="font-family: 'Lucida Console'; font-size: 10pt !important; outline: none; border: none; word-break: break-all; margin: 0px; -webkit-user-select: text; white-space: pre-wrap !important; line-height: 15px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1499710129168_12039"><span style="color: rgb(197, 6, 11);" id="yui_3_16_0_ym19_1_1499710129168_12302"><b id="yui_3_16_0_ym19_1_1499710129168_12365">summary(dados)<br id="yui_3_16_0_ym19_1_1499710129168_12180"><br id="yui_3_16_0_ym19_1_1499710129168_12181"><br id="yui_3_16_0_ym19_1_1499710129168_12182">moran.test(dados$Y, listw=w.nb, randomisation=FALSE, alternative="greater",zero.policy=TRUE) </b><br id="yui_3_16_0_ym19_1_1499710129168_12183"><br><br></span><span style="color: blue;" id="yui_3_16_0_ym19_1_1499710129168_12303"><span style="color: rgb(197, 6, 11);" id="yui_3_16_0_ym19_1_1499710129168_12334">Error in na.fail.default(x) : missing values in object</span>
</span></pre></div></td></tr></tbody></table></td></tr></tbody></table></div><div class="yiv8599546326yqt9549159318" id="yiv8599546326yqt90704"></div></div></div></div><div class=".yiv8599546326yahoo_quoted"> <div style="font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> Em Segunda-feira, 10 de Julho de 2017 15:22, Elias T. Krainski via R-br <r-br@listas.c3sl.ufpr.br> escreveu:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv8599546326y_msg_container"><div dir="ltr">Complementando:<br clear="none"><br clear="none">On 10/07/2017 15:20, Elias T. Krainski wrote:<br clear="none">> nbw <- nb2listw(este.nb,style="W", zero.policy=TRUE)<br clear="none">print(nbw, zero.policy=TRUE)<div class="yiv8599546326yqt8572517046" id="yiv8599546326yqtfd58228"><br clear="none"><br clear="none">Elias<br clear="none"><br clear="none">_______________________________________________<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 fornea cdigo mnimo reproduzvel.</div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></body></html>