Inverse Distance Weighting method (IDW)

ˆZ(s0)=ni=1(Z(si)wi)

wi=dβi/ni=1dβi

idw <- gstat(
  formula = vble ~ 1, 
  data = d2, 
  locations = ~ x + y, 
  set = list(idp = 1)
)