Description Usage Arguments Value Note Author(s) References Examples
This function applys Monte Carlo permutation test to the geographically weighted error diagnostic measures of mean signed deviation, mean absolute error, root mean squared error, Pearson's correlation coefficient between two variables (predicted and reference values) in Spatial*DataFrame. The function is designed from gwss function from the GWmodel package.
1 | gwerrors_mc(x, vars, fp, adapt = NULL, bw, longlat = NULL, distMatrix = NULL, nsim = 99)
|
x |
a Spatial*DataFrame, i.e. SpatialPointsDataFrame or SpatialPolygonsDataFrame as defined in package sp |
vars |
a vector of variable names to be applied |
fp |
fitted point defined by Spatial*DataFrame. If NULL, fp is the same locations as x. |
adapt |
if TRUE calculate an adaptive kernel where the bandwidth (bw) corresponds to the number of nearest neighbours (i.e. adaptive distance); default is NULL, where a fixed kernel is found (bandwidth is a fixed distance) |
bw |
bandwidth used in the weighting function. if adaptive bandwidth is applied, bw should be proportional (eg, 0.2 when considering 20 |
longlat |
if TRUE, great circle distances will be calculated. default = NULL. |
distMatrix |
a pre-specified distance matrix, it can be calculated by the function gw.dist. default=NULL. |
nsim |
The number of simulation time. The defaul is 99. |
P-values of each measure of mean signed deviation, mean absolute error, root mean squared error, Pearson's correlation coefficient are found at each column.
See the paper above for the details.
Tsutsumida N.
Tsutsumida N., RodrÃguez-Veiga P., Harris P., Balzter H., Comber A. Investigating Spatial Error Structures in Continuous Raster Data, accepted, International Journal of Applied Earth Observation and Geoinformation.
1 | #TBD
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.