do file from Windows Explorer with Stata closed sets the. do file’s parent folder to be Stata’s working directory. You won’t be able to merge files with multiple entries per users. For example, the Prescription Medications – Drug Information questionnaire has a row for each medication and ICD code its use for all participants. Reshape wide rxddrug rxddrgid rxqseen rxddays, i(seqn) j(j) You’ll need to use the reshape wide command on those variables before merging. This also won’t merge with the National Death Index files, which are hosted elsewhere. The NHANES-NDI linkage website provides an example Stata. do script that would be straightforward to include below.Īlso, if you are trying to combine analyses from multiple NHANES cycles (say, combinine 2009-2010 with 2011-2012), things get a bit more complicated. dta files and consider adjusting the weights.įinally, if you are interested in using Frames functionality to “merge” a dataset (aka skip saving multiple dta files in the process of building an analytica dataset), then check out this post. Scroll down, click on data of interest (e.g., demographics). Right click on the XPT data file and copy the URL. Note that the DOC file containing an overview of the file is right there. Take a peek at its contents and return with questions. ![]() ![]() ![]() The demographics file contains the weights.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |