gwerrors_mc: Monte Carlo permutation test for Geographically weighted...

Description Usage Arguments Value Note Author(s) References Examples

View source: R/gwerrors_mc.R

Description

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.

Usage

1
gwerrors_mc(x, vars, fp, adapt = NULL, bw, longlat = NULL, distMatrix = NULL, nsim = 99)

Arguments

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.

Value

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.

Note

See the paper above for the details.

Author(s)

Tsutsumida N.

References

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.

Examples

1
#TBD

naru-T/GWerrors documentation built on Dec. 8, 2019, 1:45 a.m.