Constructor for a local variance estimator introduced in Stevens and Olsen (2003) . This is a wrapper for an implementation in the spsurvey package. A column named pi_i must be present in the dataframe contained in the @data slot that specifies the first order inclusion probabilities of each element in the sample.

VarSO(fpc = FALSE, diagnostic = FALSE, coord_cols = NA, nbh = 4)

Arguments

fpc

If TRUE, finite population correction factor will be applied.

diagnostic

If TRUE, diagnostic information, i.e. a VarOut, object will be returned.

coord_cols

A character vector of the names of the coordinates in the sys_frame that contain the x and y coordinates. The x column name should be listed first.

nbh

The number of neighbors to use in the construction of local neighborhoods.

Value

Returns a function with the specified arguments that can be called on a SysFrame.

References

Stevens DL, Olsen AR (2003). “Variance estimation for spatially balanced samples of environmental resources.” Environmetrics, 14(6), 593--610. Publisher: Wiley Online Library.