Skip to content
Prev 24847 / 29559 Next

R-help:spgwr

On Wed, 31 Aug 2016, Mengjie Zhou wrote:

            
As in everything else, the only authoritative guide is to read the source 
code of the function. There, in .GWR_int() in R/gwr.R you see:

line 494		sum.w[i] <- sum(w.i)

(sum of weights for the i'th fit point)

lines 500-502
                 if (GWR_args$predictions) {
                     pred[i] <- sum(predx[i,] * betas[i,])
                 }

(the value of "predictions" depends on combinations of your input 
arguments, so pred are predictions at fit points, but why they are 
returned depends on the complete command you entered).

Always include a working, reproducible example from a built-in data set.

Hope this clarifies,

Roger