Description Usage Arguments Value Examples
Build survey objects for NHANES data
1 | nhanes_survey_design(nhanes_data, weights_column = "")
|
nhanes_data |
data frame containing NHANES data |
weights_column |
name of the weights column |
a survey design object
1 2 3 4 5 6 7 8 9 10 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.