spsurvey (version 4.1.4)

localmean.weight: Internal Function: Local Mean Variance Neighbors and Weights

Description

This function calculates the index values of neighboring points and associated weights required by the local mean variance estimator.

Usage

localmean.weight(x, y, prb, nbh = 4, vincr = 1e-05 * abs(mean(y)))

Arguments

x

Vector of x-coordinates for location of the sample points.

y

Vector of y-coordinates for location of the sample points.

prb

Vector of inclusion probabilities for the sample points.

nbh

Number of neighboring points to use in the calculations.

vincr

The variance increment for correcting an La.svd error. The default is 0.00001*abs(mean(y)).

Value

List containing two elements: a matrix named ij composed of the index values of neighboring points and a vector named gwt composed of weights.

See Also

localmean.weight2