R_hat: Calculate the Horvitz-Thompson Ratio Estimator

View source: R/R_hat.R

R_hatR Documentation

Calculate the Horvitz-Thompson Ratio Estimator

Description

R_hat is calculated by dividing the Horvitz-Thompson estimator, Tau_hat_z by Tau_hat_x. See p. 77, Thompson (2002). THERE CANNOT BE NAS IN X OR Y?

Usage

R_hat(y, x, N, n1, m_vec, replace = "FALSE")

Arguments

y

The variable of interest, y. Must be a numeric vector. The criterion that determines whether adaptive cluster sampling takes place is based on this variable.

x

A vector of values for variable $x$, which is auxiliary data about the variable of interest $y$.

N

Population size.

n1

An integer giving the initial sample size (e.g., a simple random sample).

m_vec

Vector of values m for the set of units in a sample, of length n1. Each m value within the vector m_vec denotes the number of units satisfying the ACS criterion for the network i to which the unit belongs.

replace

Whether sampling should be done with or without replacement. Defaults to FALSE.


ksauby/ACS documentation built on Aug. 18, 2022, 3:33 a.m.