Learn R Programming

RNHANES (version 1.1.0)

Facilitates Analysis of CDC NHANES Data

Description

Tools for downloading and analyzing CDC NHANES data, with a focus on analytical laboratory data.

Copy Link

Version

Install

install.packages('RNHANES')

Monthly Downloads

316

Version

1.1.0

License

Apache License 2.0 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Herb Susmann

Last Published

November 29th, 2016

Functions in RNHANES (1.1.0)

nhanes_load_data

Download NHANES data files.
file_suffix

Returns the NHANES file suffix for the given year
nhanes_hist

Plot a weighted histogram of an NHANES variable
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
download_nhanes_file

Download an NHANES data file from a given cycle
load_nhanes_description

Download an NHANES description file
demography_filename

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

Download NHANES demography files for a specific cycle.
nhanes_quantile

Compute quantiles from NHANES weighted survey data
nhanes_variables

Load the NHANES comprehensive variable list
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
nhanes_vcov

Extract variance/covariance matrix from parameters of svymean
nhanes_survey_design

Build survey objects for NHANES data
RNHANES-package

RNHANES simplifies downloading and analyzing NHANES data.
nhanes_sample_size

Compute the sample size of NHANES data
nhanes_survey

Apply a function from the survey package to NHANES data
nhanes_search

Search the results from nhanes_variables or nhanes_data_files
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