I need to compare, statistically, different rasters with a pattern raster (in this case a Revised Universal Soil Loss Equation (RUSLE) raster). I used different methods to calculate the environment vulnerability, and now, I need to calculate which method is closer to the RUSLE raster. I thought about subtracting each method raster to the RUSLE raster and then compare the means of the resulting rasters.
Anyone have any idea using R?
Best Answer
That is not a great approach as the mean can be zero, but the errors very large. Root Mean Square Error is perhaps the most common statistic used for comparisons like this.
To illustrate, I create two RasterLayer objects with random numbers, and one layer with the RUSLE data:
We need a function to compute RMSE
Now use it:
The winner is
r1
(but not by much)