More

Problem with regression kriging using the krige command in r

Problem with regression kriging using the krige command in r


I want to perform regression kriging in R using gstat. I have a SpatialPointsDataFrame which is of this form:

After I have run my glm model, in order to see which variables are statistically significant, I end up trying to apply regression kriging with:

k = krige(Jan~prop+Lat+dem, st, grd, fit_jan3)

krigecan not see my auxiliary variables, giving me this error message:

Error in eval(expr, envir, enclos) : object 'prop' not found.

Any help please?


For this to work,prop,Latanddemneed to be present ingrdas well. Also, from your question we cannot infer whetherdemis present inst.


Watch the video: 12c Data Analytics: Kriging in R