wt_corr: Survey Weighting - adjustment for nonresponse Adjust the...

Description Usage Arguments Value Note Author(s) Examples

View source: R/wt_corr.R

Description

Survey Weighting - adjustment for nonresponse Adjust the baseline NJP weights for nonresponse in a particular variable

Usage

1
wt_corr(data, wt_var)

Arguments

data

dataset. must contain strata, permid, wt_n, wt_Nc

wt_var

variable to weight, adjusting for nonresponse. input as character

Value

An object of class survey.design

Note

This code was tranlasted from Stata wt_corr.ado, written by GMAC For example, you can set alpha=0.10 to obtain one-sided test at 0.05 significance level.

Author(s)

David Aaby <david.aaby@northwestern.edu>

Examples

1
2
3
4
5
6
## Not run: 
df = read_dta("data/ddis2_hw.dta")
df = data.frame(df)
wt_corr(data=df, wt_var="anypdsm_t0")

## End(Not run)

aabydava/NJP documentation built on Sept. 4, 2020, 12:34 a.m.