This function calculates the initial section of the localmean.weight function and serves to allow recovery from an error in the singular value decomposition function (La.svd) that is called by the generalized inverse function (ginv) in the MASS package.
localmean.weight2(x, y, prb, nbh)
Vector of x-coordinates for location of the sample points.
Vector of y-coordinates for location of the sample points.
Vector of inclusion probabilities for the sample points.
Number of neighboring points to use in the calculations.
Either an object of class "try-error" when the ginv function terminates with an error or a generalized inverse matrix when the ginv function terminates normally.