[R-sig-Geo] using gwr

Edzer Pebesma edzer.pebesma at uni-muenster.de
Tue Nov 11 14:47:47 CET 2008


It is no problem for us to read all this Brazilian (eh, sorry, 
Portugese), but it is hard to reproduce your error without having access 
to your, or similar, data.
--
Edzer

Raphael Saldanha wrote:
> Olá Virgínia!
>
> Legal ver brazileiros nessa lista! Vou dar uma olhada no seu problema e lhe
> escrevo.
>
> On Tue, Nov 11, 2008 at 10:06 AM, Virginia <virginia at dpi.inpe.br> wrote:
>
>   
>> I have some questions:
>>
>> I got an error. I dont't know why.
>>
>> Somebody to help me?
>>
>> Thanks,
>>
>>  Virginia Ragoni
>>
>> require(spgwr)
>> require(foreign)
>> x <- read.shape("cidade.shp")
>> plot(x)
>> mappolys <- Map2poly1(x,as.character(x$att.data$ID9100),raw=FALSE)
>>
>> mapbbs=Map2bbs(x)
>> mapcents=get.Pcent(x)
>> tab= x$att.data
>>
>> # cálculo da largura da banda
>> sjc.bw <- gwr.sel((tab$TX_CRESC~tab$LOGDEN),data=tab,coords=mapcents)
>>
>> # error -  Erro em spDistsN1(bbox, bbox[2, ], longlat) :
>> #  NA/NaN/Inf em chamada de função externa (argumento 1)
>>
>> sp.gauss  <- gwr((tab$PERIDOSO~tab$PERREN20),data=tab,coords=mapcents,
>> bandwidth=sjc.bw, hatmatrix=TRUE)
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>>     
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>   

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de/
http://www.springer.com/978-0-387-78170-9 e.pebesma at wwu.de




More information about the R-sig-Geo mailing list