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


DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd">
  <identifier identifierType="DOI">10.5281/zenodo.2649032</identifier>
  <creators>
    <creator>
      <creatorName>Nettle, Daniel</creatorName>
      <givenName>Daniel</givenName>
      <familyName>Nettle</familyName>
      <affiliation>Newcastle University</affiliation>
    </creator>
    <creator>
      <creatorName>Bateson, Melissa</creatorName>
      <givenName>Melissa</givenName>
      <familyName>Bateson</familyName>
      <affiliation>Newcastle University</affiliation>
    </creator>
  </creators>
  <titles>
    <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'</title>
  </titles>
  <publisher>Zenodo</publisher>
  <publicationYear>2019</publicationYear>
  <dates>
    <date dateType="Issued">2019-04-23</date>
  </dates>
  <resourceType resourceTypeGeneral="Dataset"/>
  <alternateIdentifiers>
    <alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/2649032</alternateIdentifier>
  </alternateIdentifiers>
  <relatedIdentifiers>
    <relatedIdentifier relatedIdentifierType="DOI" relationType="IsVersionOf">10.5281/zenodo.2649031</relatedIdentifier>
  </relatedIdentifiers>
  <rightsList>
    <rights rightsURI="https://creativecommons.org/licenses/by/4.0/legalcode">Creative Commons Attribution 4.0 International</rights>
    <rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
  </rightsList>
  <descriptions>
    <description descriptionType="Abstract">&lt;p&gt;Code to reproduce the analyses in the study &amp;#39;&lt;strong&gt;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&amp;#39;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;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).&lt;/p&gt;

&lt;p&gt;The first R script, &amp;#39;merging script.r&amp;#39; 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:&lt;/p&gt;

&lt;p&gt;# Demographics, food insecurity and BMI&lt;br&gt;
DEMO_H.XPT&lt;br&gt;
FSQ_H.XPT&lt;br&gt;
BMX_H.XPT&lt;/p&gt;

&lt;p&gt;# Summary files of food recalls&lt;br&gt;
DR1TOT_H.XPT&lt;br&gt;
DR2TOT_H.XPT&lt;/p&gt;

&lt;p&gt;# Individual foods files from food recalls&lt;br&gt;
DR1FF_H.XPT&lt;br&gt;
DR2FF_H.XPT&lt;/p&gt;

&lt;p&gt;The second R script takes the .csv file output by the merging script, and reproduces the analyses described in the paper.&lt;/p&gt;

&lt;p&gt;Uploaded by Daniel Nettle, April 23rd 2019.&lt;/p&gt;</description>
  </descriptions>
  <fundingReferences>
    <fundingReference>
      <funderName>European Commission</funderName>
      <funderIdentifier funderIdentifierType="Crossref Funder ID">10.13039/100010661</funderIdentifier>
      <awardNumber awardURI="info:eu-repo/grantAgreement/EC/H2020/666669/">666669</awardNumber>
      <awardTitle>The effects of early-life adversity on cognition: A comparative approach.</awardTitle>
    </fundingReference>
  </fundingReferences>
</resource>
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