sqlvar {surveyNG}R Documentation

Horvitz-Thompson estimator for multistage sampling

Description

Computes the estimated variance matrix for a population total estimate under stratified multistage cluster sampling with or without replacement. The variables must be in a separate table from the main survey data table; they will typically be estimating functions. The table must have the same key variable as the main data table, which will be used for an inner join.

Usage

sqlvar(U, utable, design)

Arguments

U Vector of strings for variable names
utable String with name of data table for variables
design sqlsurvey object

Value

A matrix

See Also

sqlsurvey


[Package surveyNG version 0.3 Index]