Learn R Programming

spgwr (version 0.5-7)

gwr.bisquare: GWR bisquare weights function

Description

The function returns a vector of weights using the bisquare scheme:

$$w_{ij}(g) = (1 - (d_{ij}^2/d^2))^2$$ if $d_{ij}

Usage

gwr.bisquare(dist2, d)

Arguments

dist2
vector of squared distances between observations
d
distance at which weights are set to zero

Value

  • matrix of weights.

References

Fotheringham, A.S., Brunsdon, C., and Charlton, M.E., 2000, Quantitative Geography, London: Sage; C. Brunsdon, A.Stewart Fotheringham and M.E. Charlton, 1996, "Geographically Weighted Regression: A Method for Exploring Spatial Nonstationarity", Geographical Analysis, 28(4), 281-298; http://ncg.nuim.ie/ncg/GWR/index.htm

See Also

gwr.sel, gwr

Examples

Run this code
plot(seq(-10,10,0.1), gwr.bisquare(seq(-10,10,0.1)^2, 6.0), type="l")

Run the code above in your browser using DataLab