prev_wt: Weighted prevalence - adjusted for nonresponse Calcuated...

Description Usage Arguments Value Author(s) Examples

View source: R/prev_wt.R

Description

Weighted prevalence - adjusted for nonresponse Calcuated weighted prevalence for a given variable

Usage

1
prev_wt(data, wt_var, subpop = NULL)

Arguments

data

dataset. must contain strata, permid, wt_n, wt_Nc

wt_var

variable to estimate, adjusting for nonresponse. input as character

subpop

subpopulation

Value

data frame

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)
prev_wt(data=df, wt_var="anypdsm_t0")

## End(Not run)

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