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 Export

{
  "files": [
    {
      "links": {
        "self": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/analysis%20script%20revised.r"
      }, 
      "checksum": "md5:d873192ac4e3b2be335195b763a0928a", 
      "bucket": "ce695865-bff1-4db2-abc7-aaae65c50751", 
      "key": "analysis script revised.r", 
      "type": "r", 
      "size": 27420
    }, 
    {
      "links": {
        "self": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/merging%20script.r"
      }, 
      "checksum": "md5:949f789ba830b947a071a9583fd569fe", 
      "bucket": "ce695865-bff1-4db2-abc7-aaae65c50751", 
      "key": "merging script.r", 
      "type": "r", 
      "size": 10596
    }, 
    {
      "links": {
        "self": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751/NHANES%20files%20used%20in%20study.txt"
      }, 
      "checksum": "md5:c47c89b054629241504026ff92718aa8", 
      "bucket": "ce695865-bff1-4db2-abc7-aaae65c50751", 
      "key": "NHANES files used in study.txt", 
      "type": "txt", 
      "size": 311
    }
  ], 
  "owners": [
    32062
  ], 
  "doi": "10.5281/zenodo.3361283", 
  "stats": {
    "version_unique_downloads": 27.0, 
    "unique_views": 71.0, 
    "views": 80.0, 
    "version_views": 115.0, 
    "unique_downloads": 22.0, 
    "version_unique_views": 95.0, 
    "volume": 602325.0, 
    "version_downloads": 63.0, 
    "downloads": 46.0, 
    "version_volume": 805222.0
  }, 
  "links": {
    "doi": "https://doi.org/10.5281/zenodo.3361283", 
    "conceptdoi": "https://doi.org/10.5281/zenodo.2649031", 
    "bucket": "https://zenodo.org/api/files/ce695865-bff1-4db2-abc7-aaae65c50751", 
    "conceptbadge": "https://zenodo.org/badge/doi/10.5281/zenodo.2649031.svg", 
    "html": "https://zenodo.org/record/3361283", 
    "latest_html": "https://zenodo.org/record/3361283", 
    "badge": "https://zenodo.org/badge/doi/10.5281/zenodo.3361283.svg", 
    "latest": "https://zenodo.org/api/records/3361283"
  }, 
  "conceptdoi": "10.5281/zenodo.2649031", 
  "created": "2019-08-06T08:42:57.565294+00:00", 
  "updated": "2020-01-24T19:23:54.685680+00:00", 
  "conceptrecid": "2649031", 
  "revision": 4, 
  "id": 3361283, 
  "metadata": {
    "access_right_category": "success", 
    "doi": "10.5281/zenodo.3361283", 
    "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": {
      "id": "CC-BY-4.0"
    }, 
    "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'", 
    "relations": {
      "version": [
        {
          "count": 2, 
          "index": 1, 
          "parent": {
            "pid_type": "recid", 
            "pid_value": "2649031"
          }, 
          "is_last": true, 
          "last_child": {
            "pid_type": "recid", 
            "pid_value": "3361283"
          }
        }
      ]
    }, 
    "grants": [
      {
        "code": "666669", 
        "links": {
          "self": "https://zenodo.org/api/grants/10.13039/501100000780::666669"
        }, 
        "title": "The effects of early-life adversity on cognition: A comparative approach.", 
        "acronym": "COMSTAR", 
        "program": "H2020", 
        "funder": {
          "doi": "10.13039/501100000780", 
          "acronyms": [], 
          "name": "European Commission", 
          "links": {
            "self": "https://zenodo.org/api/funders/10.13039/501100000780"
          }
        }
      }
    ], 
    "publication_date": "2019-04-23", 
    "creators": [
      {
        "affiliation": "Newcastle University", 
        "name": "Nettle, Daniel"
      }, 
      {
        "affiliation": "Newcastle University", 
        "name": "Bateson, Melissa"
      }
    ], 
    "access_right": "open", 
    "resource_type": {
      "type": "dataset", 
      "title": "Dataset"
    }, 
    "related_identifiers": [
      {
        "scheme": "doi", 
        "identifier": "10.5281/zenodo.2649031", 
        "relation": "isVersionOf"
      }
    ]
  }
}
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