Dataset Open Access
Nettle, Daniel; Bateson, Melissa
{ "description": "<p>Code to reproduce the analyses in the study '<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'</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, '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:</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 described in the paper.</p>\n\n<p>Uploaded by Daniel Nettle, April 23rd 2019.</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/2649032", "datePublished": "2019-04-23", "@context": "https://schema.org/", "distribution": [ { "contentUrl": "https://zenodo.org/api/files/c35f159d-82f4-4e12-84ec-b34991832ffd/analysis script.r", "encodingFormat": "r", "@type": "DataDownload" }, { "contentUrl": "https://zenodo.org/api/files/c35f159d-82f4-4e12-84ec-b34991832ffd/merging script.r", "encodingFormat": "r", "@type": "DataDownload" }, { "contentUrl": "https://zenodo.org/api/files/c35f159d-82f4-4e12-84ec-b34991832ffd/NHANES files used in study.txt", "encodingFormat": "txt", "@type": "DataDownload" } ], "identifier": "https://doi.org/10.5281/zenodo.2649032", "@id": "https://doi.org/10.5281/zenodo.2649032", "@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'" }
All versions | This version | |
---|---|---|
Views | 116 | 35 |
Downloads | 63 | 17 |
Data volume | 805.2 kB | 202.9 kB |
Unique views | 96 | 32 |
Unique downloads | 27 | 6 |