DVar {NCSampling}R Documentation

Design variances for single stratum.

Description

For a single stratum approximate design variances are calculated. Not intended to be called directly.

Usage

DVar(popfile, nrefs, yvars, desvars, kvalue, B=1000)

Arguments

popfile

dataframe containing information on stratum of interest.

nrefs

scalar containing the sample size of the stratum.

yvars

character vector containing the name of each variable of interest (dependent variable) for which design variances are required.

desvars

character vector containing the names of the design variables.

kvalue

scalar specifying the value of k for the k-nn imputation.

B

number of re-samples used to calculate the design variances.

Value

A dataframe containing the design variances for the stratum of interest. Data used to calculate these are also returned.

Author(s)

G. Melville

See Also

NC.sample, DesVar.

Examples

## DesVar(popfile, nrefs, yvars, kvalue, desvars, B=1000) 

[Package NCSampling version 1.0 Index]