R Under development (unstable) (2025-08-26 r88710 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # Assuming that the soil type is the source of biases > library(intamapInteractive) Loading required package: intamap Loading required package: sp > data(meuse) > coordinates(meuse) = ~x+y > > lb = findLocalBias(meuse,gid = "soil",formulaString=as.formula(zinc~1)) [using ordinary kriging] [using ordinary kriging] [using ordinary kriging] [using ordinary kriging] > lb$single$bias groups ols ols.std wls wls.std 1 1 229.53779 31.70881 204.93546 28.06270 2 2 -54.33288 31.70881 -58.27423 21.10777 3 3 -175.20491 35.45153 -146.66123 26.60755 > > > meuseUnbias = removeLocalBias(meuse,localBias = lb, gid = "soil", + formulaString = zinc~1) > summary(meuseUnbias) Object of class SpatialPointsDataFrame Coordinates: min max x 178605 181390 y 329714 333611 Is projected: NA proj4string : [NA] Number of points: 155 Data attributes: cadmium copper lead zinc Min. : 0.200 Min. : 14.00 Min. : 37.0 Min. : -85.94 1st Qu.: 0.800 1st Qu.: 23.00 1st Qu.: 72.5 1st Qu.: 198.67 Median : 2.100 Median : 31.00 Median :123.0 Median : 289.66 Mean : 3.246 Mean : 40.32 Mean :153.4 Mean : 370.11 3rd Qu.: 3.850 3rd Qu.: 49.50 3rd Qu.:207.0 3rd Qu.: 489.06 Max. :18.100 Max. :128.00 Max. :654.0 Max. :1634.06 elev dist om ffreq soil lime Min. : 5.180 Min. :0.00000 Min. : 1.000 1:84 1:97 0:111 1st Qu.: 7.546 1st Qu.:0.07569 1st Qu.: 5.300 2:48 2:46 1: 44 Median : 8.180 Median :0.21184 Median : 6.900 3:23 3:12 Mean : 8.165 Mean :0.24002 Mean : 7.478 3rd Qu.: 8.955 3rd Qu.:0.36407 3rd Qu.: 9.000 Max. :10.520 Max. :0.88039 Max. :17.000 NA's :2 landuse dist.m W :50 Min. : 10.0 Ah :39 1st Qu.: 80.0 Am :22 Median : 270.0 Fw :10 Mean : 290.3 Ab : 8 3rd Qu.: 450.0 (Other):25 Max. :1000.0 NA's : 1 > > proc.time() user system elapsed 3.39 0.40 3.79