Skip to content
Prev 11187 / 29559 Next

R2 values from SSErr fit.variogram attribute

On 03/15/2011 04:18 AM, S?bastien Durand wrote:
You're comparing a weighted fit to an unweighted mean. If you want to
evaluate the fit (by R2), the corresponding null-model should use the
same weights, IMO. Given weights w and values sv$gamma, that would be
sum(w * sv$gamma)/sum(w) rather than mean(sv$gamma).

Or, alternatively, weighted.mean(sv$gamma, w)