
The function applies the weighting function in turn to each of the 55, in the GWR bookĪn object of class "gwr" returned by the gwr functionĪrguments to be passed to other functions The cluster will then be used to hand off the calculation of local coefficients to cluster nodes, if fit points have been given as an argument, and hatmatrix=FALSEĭefault FALSE if TRUE and no fit points given, return GW fitted values at data points, if fit points given and are a Spatial*DataFrame object containing the RHS variables in the formula, return GW predictions at the fit pointsĪ fitted gwr object with a hatmatrix (optional), if given, and if fit.points are given and if se.fit is TRUE, two effective degrees of freedom sigmas will be used to generate alternative coefficient standard errorsĭefault TRUE, compute local coefficient standard errors using formula (2.14), p.

If NULL, ignored, otherwise cl must be an object describing a “cluster” created using makeCluster in the parallel package. If TRUE, return local coefficient standard errors - if hatmatrix is TRUE and no fit.points are given, two effective degrees of freedom sigmas will be used to generate alternative coefficient standard errorsĬase weights used as in weighted least squares, beware of scaling issues, probably unsafe TRUE if point coordinates are longitude-latitude decimal degrees, in which case distances are measured in kilometers if x is a SpatialPoints object, the value is taken from the object itself If TRUE, return the hatmatrix as a component of the result, ignored if fit.points givenĪn object containing the coordinates of fit points often an object from package sp if missing, the coordinates given through the data argument object, or the coords argument are used Gwr.Gauss() default, or gwr.gauss(), the previous default or gwr.bisquare()Įither NULL (default) or a proportion between 0 and 1 of observations to include in weighting scheme (k-nearest neighbours) Geographical weighting function, at present Positions of the observations may be omitted if the object passed through the data argument is from package spīandwidth used in the weighting function, possibly Matrix of coordinates of points representing the spatial Model data frame, or SpatialPointsDataFrame or SpatialPolygonsDataFrame as defined in package sp Se.fit=FALSE, weights, cl=NULL, predictions = FALSE,įittedGWRobject = NULL, se.fit.CCT = TRUE)


gwr(formula, data=list(), coords, bandwidth, gweight=gwr.Gauss,Īdapt=NULL, hatmatrix = FALSE, fit.points, longlat=NULL, To exploring spatial non-stationarity for given global bandwidth and chosen The function implements the basic geographically weighted regression approach
