five

National Survey on Drug Use and Health (NSDUH)

收藏
DataCite Commons2025-05-12 更新2025-05-17 收录
下载链接:
https://dataverse.harvard.edu/citation?persistentId=doi:10.7910/DVN/ZIGNUL
下载链接
链接失效反馈
官方服务:
资源简介:
<h3 class="post-title entry-title" itemprop="name"> analyze the national survey on drug use and health (nsduh) with r </h3> the national survey on drug use and health (nsduh) monitors illicit drug, alcohol, and tobacco use with more detail than any other survey out there. if you wanna know the average age at first chewing tobacco dip, the prevalence of needle-sharing, the family structure of households with someone abusing pain relievers, even the health insurance coverage of peyote users, you are in the right place. the <a href="http://www.samhsa.gov/">substance abuse and mental health services administration (samhsa)</a> contracts with the north carolinians over at <a href="http://www.rti.org/">research triangle institute</a> to run the survey, but the university of michigan's <a href="http://www.icpsr.umich.edu/icpsrweb/SAMHDA/">substance abuse and mental health data archive (samhda)</a> holds the keys to this data castle.<br /> <br /> nsduh in <a href="http://oas.samhsa.gov/nsduh /2k10MRB/2k10Q.pdf">its current form</a> only goes back about a decade, when samhsa <a href="http://oas.samhsa.gov/redesigningNHSDA.pdf">re-designed the methodology</a> and started paying respondents thirty bucks a pop. before that, look for its predecessor - <a href="http://www.icpsr.umich.edu/icpsrweb/SAMHDA/studies/3580">the national household survey on drug abuse (nhsda)</a> - with public use files available back to 1979 (included in these scripts). be sure to read those changes in methodo logy carefully before you start trying to trend smokers' <a href="http://en.wikipedia.org/wiki/Virginia_Slims">virginia slims</a> brand loyalty back to 1999.<br /> <br /> although (to my knowledge) only the <a href="http://usgsd.blogspot.com/search/label/national%20health%20interview%20survey%20%28nhis%29">national health interview survey</a> contains r syntax examples in its documentation, the friendly folks at samhsa have shown promise. since their <a href="http://oas.samhsa.gov/NSDUH/2k10NSD UH/tabs/Sect1peTabs19to23.pdf">published data tables</a> were run on a restricted-access data set, i requested that they run the same sudaan analysis code on the public use files to confirm that this new r syntax does what it should. <a href="https://github.com/ajdamico/usgsd/blob/master/National%20Survey%20on%20Drug%20Use%20and%20Health/NSDUH%20PUF_Table_1.19B_D%20from%20SAMHSA.pdf?raw=true">they delivered</a>, <a href="https://github.com/ajdamico/usgsd/blob/master/National%20Survey%20on%20Dru g%20Use%20and%20Health/replicate%20samhsa%20puf.R">i matched</a>, pats on the back all around.<br /> <br /> if you need a one-off data point, samhda is overflowing with <a href="http://www.icpsr.umich.edu/icpsrweb/SAMHDA/sda">options to analyze the data online</a>. you even might find some <a href="http://www.icpsr.umich.edu/icpsrweb/content/SAMHDA/rdas.html">restricted statistics</a> that won't appear in the public use files. still, that's no substitute for getting your hands dirty. when you tire of <a href="http://www.kaiseredu.org/tutorials/onlinedata/player.html">menu-driven online query tools</a> and you're ready to bark with the big data dogs, give these puppies a whirl. the national survey on drug use and health targets the civilian, noninstitutionalized population of the united states aged twelve and older. this new github repository contains three scripts:<br /> <br /> <br /> <b>1979-2011 - download all microdata.R</b><br /> <ul> <li>authenticate the university of michi gan's "<a href="http://www.icpsr.umich.edu/cgi-bin/bob/zipcart2?path=SAMHDA&study=32722">i agree with these terms</a>" page</li> <li><a href="http://stat.ethz.ch/R-manual/R-patched/library/utils/html/download.file.html">download</a>, <a href="http://stat.ethz.ch/R-manual/R-devel/library/foreign/html/read.dta.html">import</a>, <a href="http://stat.ethz.ch/R-manual/R-patched/library/base/html/save.html">save</a> each available year of data (with documentation) back to 1979 </li> <li>convert ea ch pre-packaged stata do-file (.do) into r, run the damn thing, get <a href="http://www.statmethods.net/input/missingdata.html">NAs</a> where they belong</li> </ul> <br /> <b>2010 single-year - analysis examples.R</b><br /> <ul> <li>load a single year of data</li> <li>limit the table to the variables needed for an example analysis </li> <li>construct the <a href="http://faculty.washington.edu/tlumley/survey/html/svydesign.html">complex sample survey object </a></li> <li>run enough example analyses to make a kitchen sink jealous</li> </ul> <br /> <b>replicate sam hsa puf.R</b><br /> <ul> <li>load a single year of data </li> <li>limit the table to the variables needed for an example analysis </li> <li>construct the <a href="http://faculty.washington.edu/tlumley/survey/html/svydesign.html">complex sample survey object </a></li> <li>print statistics and standard errors matching the <a href="https://github.com/ajdamico/usgsd/blob/master/National%20Survey%20on%20Drug%20Use%20and%20Health/NSDUH%20PUF_Table_1.19B_D%20from%20SAMHSA.pdf?raw=true">target replicati on table</a></li> </ul> <br /> <br /> <br /> <a href="https://github.com/ajdamico/usgsd/tree/master/National%20Survey%20on%20Drug%20Use%20and%20Health">click here to view these three scripts</a><br /> <br /> <br /> <br /> for more detail about the national survey on drug use and health, visit:<br /> <ul> <li><a href="http://oas.samhsa.gov/NSDUH.htm">the substance abuse and mental health services administration's nsduh homepage</a></li> <li><a href="https://nsduhweb.rti.org/">research triangle in stitute's nsduh homepage</a></li> <li><a href="http://www.icpsr.umich.edu/icpsrweb/SAMHDA/series/64">the university of michigan's nsduh homepage</a></li> </ul> <br /> <br /> notes:<br /> <br /> the 'download all microdata' program intentionally breaks unless you complete the clearly-defined, one-step instruction to authenticate that you have read and agree with the download terms. the script will download the entire public use file archive, but only after this step has been completed. if you c ontact me for help without reading those instructions, i reserve the right to tease you mercilessly. also: thanks to the great <a href="http://had.co.nz/">hadley wickham</a> for figuring out <a href="http://stackoverflow.com/questions/13204503/how-to-use-r-to-download-a-zipped-file-from-a-ssl-page-that-requires-cookies">how to authenticate in the first place</a>.<br /> <br /> confidential to sas, spss, stata, and sudaan users: did you know that you don't have to stop reading just because you've run out of candlewax? maybe it's time to switch to r. :D
提供机构:
Harvard Dataverse
创建时间:
2019-02-13
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作