Compute geometric means from NHANES weighted survey data

nhanes_geometric_mean(nhanes_data, column, weights_column = "",
  filter = NULL)

Arguments

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

Value

a data frame

Examples

# NOT RUN { dat <- nhanes_load_data("UHG_G", "2011-2012", demographics = TRUE) nhanes_geometric_mean(dat, "URXUHG", "URDUHGLC", "WTSA2YR") # }