[R-sig-Geo] GWR: set initial bandwidth value for gwr.sel()

Roger Bivand Roger.Bivand at nhh.no
Thu Mar 8 21:23:56 CET 2012


On Thu, 8 Mar 2012, Burton Shank wrote:

> Is there a way to set the initial bandwidth for gwr.sel() when doing
> geographically weighted regression?
>
> It looks like gwr.sel() calls optimize() which accepts a min/max range
> for parameters but not an initial value. I'd rather not constrain the
> bandwidth. However, I often send different subsets of the same dataset
> to gwr.sel and would like to speed up the optimization process by
> passing a value from the last call to the function.
>
> Solutions?

Just set the bandwidth manually. gwr.sel() does use optimize(), which does 
not take a start value (optim() does, but does not work well for line 
search).

Hope this clarifies,

Roger

>
> thanks,
>
> Burton Shank
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list