weighting function
On Mon, 1 Jul 2013, Michael Blows wrote:
Hi R sig geo community! does the current version of SPGWR use? wij = exp(-(d/h)^2) or wij = exp(-0.5*(d/h)^2)as weighting function? Thanks, Mike
R 101? To see what the R code does, enter the name of the function at the prompt. The default weighting function is gwr.Gauss (see ?gwr), so:
gwr.Gauss
function (dist2, bandwidth)
{
w <- exp((-0.5) * ((dist2)/(bandwidth^2)))
w
}
and ?gwr.Gauss says:
dist2: vector of squared distances between observations and fit point
Until 0.5, gwr.gauss was used, as the help page says; the current release
is 0.6-21.
[[alternative HTML version deleted]]
Please do not post HTML! Hope this clarifies, Roger
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