nhanes_survey_design {RNHANES}R Documentation

Build survey objects for NHANES data

Description

Build survey objects for NHANES data

Usage

nhanes_survey_design(nhanes_data, weights_column = "")

Arguments

nhanes_data

data frame containing NHANES data

weights_column

name of the weights column

Value

a survey design object

Examples


## Not run: 
dat <- nhanes_load_data("UHG_G", "2011-2012", demographics = TRUE)

design <- nhanes_survey_design(dat, "WTSA2YR")

svymean(~RIDAGEYR, design)

svyglm(URXUHG ~ RIDAGEYR + RIAGENDR, design)

## End(Not run)


[Package RNHANES version 1.1.0 Index]