All functions

demography_filename

Translates cycle years into the correct demography filename suffix, e.g. '2001-2002' returns 'B'

download_nhanes_file

Download an NHANES data file from a given cycle

file_suffix

Returns the NHANES file suffix for the given year

load_nhanes_description

Download an NHANES description file

nhanes_analyze

Compute quantiles from NHANES weighted survey data

nhanes_cycle_years

List the valid NHANES cycle years

nhanes_data_files

List the NHANES data files

nhanes_detection_frequency

Compute detection frequencies of NHANES data

nhanes_geometric_mean

Compute geometric means from NHANES weighted survey data

nhanes_hist

Plot a weighted histogram of an NHANES variable

nhanes_load_data

Download NHANES data files.

nhanes_load_demography_data

Download NHANES demography files for a specific cycle.

nhanes_quantile

Compute quantiles from NHANES weighted survey data

nhanes_sample_size

Compute the sample size of NHANES data

nhanes_search

Search the results from nhanes_variables or nhanes_data_files

nhanes_survey

Apply a function from the survey package to NHANES data

nhanes_survey_design

Build survey objects for NHANES data

nhanes_variables

Load the NHANES comprehensive variable list

nhanes_vcov

Extract variance/covariance matrix from parameters of svymean

process_file_name

Processes a file name to make sure it is valid and has the correct suffix and extension File names with an extension (e.g. ".XPT") are not altered

RNHANES-package

RNHANES simplifies downloading and analyzing NHANES data.

validate_year

Check that the year is in the correct format e.g. '2001-2002' is correct and returns TRUE, '2001' is not correct and returns FALSE