sqlvar: Horvitz-Thompson estimator for multistage sampling

Description Usage Arguments Value See Also

Description

Computes the estimated (linearisation) 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

1
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


sqlsurvey documentation built on May 2, 2019, 4:53 p.m.

Related to sqlvar in sqlsurvey...