nhanes_sample_size: Compute the sample size of NHANES data

View source: R/sample_size.R

nhanes_sample_sizeR Documentation

Compute the sample size of NHANES data

Description

Compute the sample size of NHANES data

Usage

nhanes_sample_size(
  nhanes_data,
  column,
  comment_column = "",
  weights_column = "",
  filter = NULL
)

Arguments

nhanes_data

data frame containing NHANES data

column

column name of the variable to compute quantiles for

comment_column

comment column name of the variable for checking if computed quantiles are below the LOD

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_sample_size(dat, "URXUHG", "URDUHGLC")

## End(Not run)


SilentSpringInstitute/RNHANES documentation built on Feb. 15, 2024, 11:26 p.m.