Description
I have a question about how to obtain a map of regression coefficients that varies with space when I do Multiple Linear Regression in universal kriging. For example, a linear regression of Y = k1X1+k2X2. Could I predict a spatial pattern of parameter k1 in gstat package?
I noticed that Liang et al (2016) used gstat package to estimate a global map of effects of species diversity on productivity, which means that the regression parameter (e.g., k1 and k2) varies with spatial location. However, I do not know how to implement this, though I have tried many times. Is there any function to get regression coefficients that varies with space in gstat package? Many thanks!
Reference:
Jingjing Liang. et al., 2016, Science 'Positive biodiversity-productivity relationship predominant in global forests'