Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Christina Wei <christinaw1211@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: how to merge datasets |
Date | Mon, 27 Jan 2014 10:26:20 -0500 |
Hi Dianne, make sure all the datasets you have are in the same format (e.g. wide vs long), and that there are no duplicates, especially if you are dealing with administrative datasets. Here is a tutorial on dataset merging that you may find helpful: http://www.ats.ucla.edu/stat/stata/modules/combine.htm On Mon, Jan 27, 2014 at 10:21 AM, Dianne Devine <dianne.devine20@btinternet.com> wrote: > Thank you very much Anthony I will do this. > > Kind regards > Dianne > > On 27 Jan 2014, at 15:10, Thomas, Anthony <anthony_h_thomas@brown.edu> wrote: > >> Hi Dianne, >> >> Try looking at the "merge" section in the Stata manual. It is very >> helpful and has several examples. You can find this online or by >> typing "help merge" in the command window which should include a link >> to the manual entry. >> >> Anthony >> >> On Mon, Jan 27, 2014 at 10:01 AM, Dianne Devine >> <dianne.devine20@btinternet.com> wrote: >>> Dear Statalist >>> >>> I have 5 datasets downloaded from NHANES 2009-2010 and I would like to merge these please. I am a stata novice and would be most grateful for any help given. >>> >>> 1. Demographic >>> 2. Income >>> 3. Occupation >>> 4. Sexual Behaviour >>> 5. Oral HPV >>> >>> Thank you in advance >>> Dianne >>> * >>> * For searches and help try: >>> * http://www.stata.com/help.cgi?search >>> * http://www.stata.com/support/faqs/resources/statalist-faq/ >>> * http://www.ats.ucla.edu/stat/stata/ >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/faqs/resources/statalist-faq/ >> * http://www.ats.ucla.edu/stat/stata/ > > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/