There is a newer version of this record available.

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 described in the paper.

Uploaded by Daniel Nettle, April 23rd 2019.</dc:description>
  <dc:identifier>https://zenodo.org/record/2649032</dc:identifier>
  <dc:identifier>10.5281/zenodo.2649032</dc:identifier>
  <dc:identifier>oai:zenodo.org:2649032</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>
116
63
views
downloads
All versions This version
Views 11635
Downloads 6317
Data volume 805.2 kB202.9 kB
Unique views 9632
Unique downloads 276

Share

Cite as