var_HartleyRao: Hartley and Rao approximate variance estimator

View source: R/varEst_class3.R

var_HartleyRaoR Documentation

Hartley and Rao approximate variance estimator

Description

Compute the an approximate variance estimator obtained by the approximation of joint-inclusion probabilities proposed by Hartley and Rao (1962). Estimator of class 3, it requires only first-order inclusion probabilities but for all population units.

Usage

var_HartleyRao(y, pik, sample)

Arguments

y

numeric vector of sample observations

pik

numeric vector of first-order inclusion probabilities for all population units

sample

Either a numeric vector of length equal to the sample size with the indices of sample units, or a boolean vector of the same length of pik, indicating which units belong to the sample (TRUE if the unit is in the sample, FALSE otherwise. Only used with estimators of the third class (see Details for more information).

Value

a scalar, the estimated variance


rhobis/UPSvarApprox documentation built on Sept. 11, 2023, 9:45 a.m.