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


JSON-LD (schema.org) Export

{
  "description": "<p>Code to reproduce the analyses in the study &#39;<strong>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&#39;</strong></p>\n\n<p>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).</p>\n\n<p>The first R script, &#39;merging script.r&#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:</p>\n\n<p># Demographics, food insecurity and BMI<br>\nDEMO_H.XPT<br>\nFSQ_H.XPT<br>\nBMX_H.XPT</p>\n\n<p># Summary files of food recalls<br>\nDR1TOT_H.XPT<br>\nDR2TOT_H.XPT</p>\n\n<p># Individual foods files from food recalls<br>\nDR1FF_H.XPT<br>\nDR2FF_H.XPT</p>\n\n<p>The second R script takes the .csv file output by the merging script, and reproduces the analyses and figures described in the paper.</p>\n\n<p>Initially uploaded by Daniel Nettle, April 23rd 2019. Slightly revised versions uploaded August 6th 2019 by Daniel Nettle.</p>", 
  "license": "https://creativecommons.org/licenses/by/4.0/legalcode", 
  "creator": [
    {
      "affiliation": "Newcastle University", 
      "@type": "Person", 
      "name": "Nettle, Daniel"
    }, 
    {
      "affiliation": "Newcastle University", 
      "@type": "Person", 
      "name": "Bateson, Melissa"
    }
  ], 
  "url": "https://zenodo.org/record/3361283", 
  "datePublished": "2019-04-23", 
  "@context": "https://schema.org/", 
  "distribution": [
    {
      "contentUrl": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/analysis script revised.r", 
      "encodingFormat": "r", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/merging script.r", 
      "encodingFormat": "r", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/NHANES files used in study.txt", 
      "encodingFormat": "txt", 
      "@type": "DataDownload"
    }
  ], 
  "identifier": "https://doi.org/10.5281/zenodo.3361283", 
  "@id": "https://doi.org/10.5281/zenodo.3361283", 
  "@type": "Dataset", 
  "name": "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'"
}
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