Skip to content
Prev 18688 / 29559 Next

weighting function

On Mon, 1 Jul 2013, Michael Blows wrote:

            
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:
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.
Please do not post HTML!

Hope this clarifies,

Roger