Dataset Open Access

Code for 'Food-insecure women eat a less diverse diet in a more temporally variable way: Evidence from the US National Health and Nutrition Examination Survey, 2013-4'

Nettle, Daniel; Bateson, Melissa


Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:creator>Nettle, Daniel</dc:creator>
  <dc:creator>Bateson, Melissa</dc:creator>
  <dc:date>2019-04-23</dc:date>
  <dc:description>Code to reproduce the analyses in the study 'Food-insecure women eat a less diverse diet in a more temporally variable way: Evidence from the US National Health and Nutrition Examination Survey, 2013-4'

The analysis requires two R scripts available here, plus original 2013-4 NHANES data files, downloadable from the NHANES website (https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2013).

The first R script, 'merging script.r' takes the original NHANES files, extracts the variables required for the study, merges them into a single data frame, and saves this in .csv format. The NHANES files it requires are:

# Demographics, food insecurity and BMI
DEMO_H.XPT
FSQ_H.XPT
BMX_H.XPT

# Summary files of food recalls
DR1TOT_H.XPT
DR2TOT_H.XPT

# Individual foods files from food recalls
DR1FF_H.XPT
DR2FF_H.XPT

The second R script takes the .csv file output by the merging script, and reproduces the analyses and figures described in the paper.

Initially uploaded by Daniel Nettle, April 23rd 2019. Slightly revised versions uploaded August 6th 2019 by Daniel Nettle.</dc:description>
  <dc:identifier>https://zenodo.org/record/3361283</dc:identifier>
  <dc:identifier>10.5281/zenodo.3361283</dc:identifier>
  <dc:identifier>oai:zenodo.org:3361283</dc:identifier>
  <dc:relation>info:eu-repo/grantAgreement/EC/H2020/666669/</dc:relation>
  <dc:relation>doi:10.5281/zenodo.2649031</dc:relation>
  <dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
  <dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights>
  <dc:title>Code for 'Food-insecure women eat a less diverse diet in a more temporally variable way: Evidence from the US National Health and Nutrition Examination Survey, 2013-4'</dc:title>
  <dc:type>info:eu-repo/semantics/other</dc:type>
  <dc:type>dataset</dc:type>
</oai_dc:dc>
115
63
views
downloads
All versions This version
Views 11580
Downloads 6346
Data volume 805.2 kB602.3 kB
Unique views 9571
Unique downloads 2722

Share

Cite as