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


MARC21 XML Export

<?xml version='1.0' encoding='UTF-8'?>
<record xmlns="http://www.loc.gov/MARC21/slim">
  <leader>00000nmm##2200000uu#4500</leader>
  <controlfield tag="005">20200124192354.0</controlfield>
  <controlfield tag="001">3361283</controlfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="u">Newcastle University</subfield>
    <subfield code="a">Bateson, Melissa</subfield>
  </datafield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">27420</subfield>
    <subfield code="z">md5:d873192ac4e3b2be335195b763a0928a</subfield>
    <subfield code="u">https://zenodo.org/record/3361283/files/analysis script revised.r</subfield>
  </datafield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">10596</subfield>
    <subfield code="z">md5:949f789ba830b947a071a9583fd569fe</subfield>
    <subfield code="u">https://zenodo.org/record/3361283/files/merging script.r</subfield>
  </datafield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">311</subfield>
    <subfield code="z">md5:c47c89b054629241504026ff92718aa8</subfield>
    <subfield code="u">https://zenodo.org/record/3361283/files/NHANES files used in study.txt</subfield>
  </datafield>
  <datafield tag="542" ind1=" " ind2=" ">
    <subfield code="l">open</subfield>
  </datafield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="c">2019-04-23</subfield>
  </datafield>
  <datafield tag="909" ind1="C" ind2="O">
    <subfield code="p">openaire_data</subfield>
    <subfield code="o">oai:zenodo.org:3361283</subfield>
  </datafield>
  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="u">Newcastle University</subfield>
    <subfield code="a">Nettle, Daniel</subfield>
  </datafield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="a">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'</subfield>
  </datafield>
  <datafield tag="536" ind1=" " ind2=" ">
    <subfield code="c">666669</subfield>
    <subfield code="a">The effects of early-life adversity on cognition: A comparative approach.</subfield>
  </datafield>
  <datafield tag="540" ind1=" " ind2=" ">
    <subfield code="u">https://creativecommons.org/licenses/by/4.0/legalcode</subfield>
    <subfield code="a">Creative Commons Attribution 4.0 International</subfield>
  </datafield>
  <datafield tag="650" ind1="1" ind2="7">
    <subfield code="a">cc-by</subfield>
    <subfield code="2">opendefinition.org</subfield>
  </datafield>
  <datafield tag="520" ind1=" " ind2=" ">
    <subfield code="a">&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 and figures described in the paper.&lt;/p&gt;

&lt;p&gt;Initially uploaded by Daniel Nettle, April 23rd 2019. Slightly revised versions uploaded August 6th 2019 by Daniel Nettle.&lt;/p&gt;</subfield>
  </datafield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">doi</subfield>
    <subfield code="i">isVersionOf</subfield>
    <subfield code="a">10.5281/zenodo.2649031</subfield>
  </datafield>
  <datafield tag="024" ind1=" " ind2=" ">
    <subfield code="a">10.5281/zenodo.3361283</subfield>
    <subfield code="2">doi</subfield>
  </datafield>
  <datafield tag="980" ind1=" " ind2=" ">
    <subfield code="a">dataset</subfield>
  </datafield>
</record>
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