error_diagnostics: Core function for calculating Geographically weighted error...

Description Usage Arguments Value Note Author(s) References Examples

Description

This core function is used for calculation the geographically weighted error diagnostic measures of mean signed deviation, mean absolute error, root mean squared error, and Pearson's correlation coefficient between two variables (predicted and reference values) The function is designed from cov.wt function from the stats package.

Usage

1
error_diagnostics(x, wts.all, center = TRUE)

Arguments

x

a matrix or data frame. As usual, rows are observations and columns are variables.

wts.all

a non-negative and non-zero vector of weights for each observation. Its length must equal the number of rows of x.

center

either a logical or a numeric vector specifying the centers to be used when computing. If TRUE, the (weighted) mean of each variable is used, if FALSE, zero is used. If center is numeric, its length must equal the number of columns of x.

Value

rmse

root mean squared error

mae

mean absolute error

difference

mean signed deviation

calc.pointn

The number of point used for the calculation

calc.cor.test

Pearson's correlation coefficient

cor.pval

P-value of Pearson's correlation

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.