
Generate RMSE from an estimated raster surface and point data
Source:R/validation_functions.R
rmse_raster_to_point.RdGenerate RMSE from an estimated raster surface and point data
Arguments
- estimates
(terra::SpatRaster) Raster surface containing point estimates. This could also be the mean surface of a Bayesian geostatistical model
- validation_data
(
data.frame)
Table containing at least the following fields:x (
numeric) location x position, in the same projection asestimatesy (
numeric) location y position, in the same projection asestimates(Outcome field) See below
- outcome_field
(
character(1)) Column invalidation_datacontaining the values that should be compared against theestimatesraster surface.- na.rm
(
logical(1), default FALSE) Should NA values be dropped from the RMSE calculation?
Details
For examples, see vignette('model-comparison', package = 'mbg')