Learn R Programming

nonprobsampling (version 0.1.0)

raking_estimate: Estimate step for raking-ratio calibration

Description

Computes the domain-specific pseudo-weighted Hájek mean and its Taylor-linearized variance for the raking-ratio calibration estimator.

Usage

raking_estimate(Y, Z, w, X, D, S_beta)

Value

A list with components `mean` and `variance`.

Arguments

Y

Outcome vector for the nonprobability sample.

Z

Domain indicator vector. Use `rep(1, length(Y))` for the overall mean.

w

Estimated pseudo-weights from the calibration build step.

X

Calibration design matrix for the nonprobability sample.

D

Design-based variance-covariance matrix of the estimated auxiliary totals from the reference survey or surveys. For multiple reference surveys, this is block diagonal.

S_beta

Sensitivity matrix for the calibration estimating equations, typically t(w * X) %*% X for raking-ratio calibration.