localmean_weight: Internal Function: Local Mean Variance Neighbors and Weights

View source: R/localmean_weight.R

localmean_weightR Documentation

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)

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.

Value

If ginv fails to return valid output, a NULL object. Otherwise, a list containing two elements: a matrix named ij composed of the index values of neighboring points and a vector named gwt composed of weights.

Author(s)

Tom Kincaid Kincaid.Tom@epa.gov


spsurvey documentation built on May 31, 2023, 6:25 p.m.