View source: R/geometric_mean.R
nhanes_geometric_mean | R Documentation |
Compute geometric means from NHANES weighted survey data
nhanes_geometric_mean(nhanes_data, column, weights_column = "", filter = NULL)
nhanes_data |
data frame containing NHANES data |
column |
column name of the variable to compute geometric means for |
weights_column |
name of the weights column |
filter |
logical expression used to subset the data |
a data frame
## Not run:
dat <- nhanes_load_data("UHG_G", "2011-2012", demographics = TRUE)
nhanes_geometric_mean(dat, "URXUHG", "URDUHGLC", "WTSA2YR")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.