Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Prakash Singh <prakashbhu@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Some basic help on programming |
Date | Wed, 11 Apr 2012 23:22:20 +0530 |
Thanks lot Friedrich One out of the box query could you suggest some material available to download for learning programming as it feels that it will reduce a lot of cluttering of do file for me in future. Once again thanks Prakash On Wed, Apr 11, 2012 at 9:41 PM, Friedrich Huebler <fhuebler@gmail.com> wrote: > Prakash, > > Add these lines to the commands from my earlier message: > > contract common_id > drop _freq > foreach i of local items { > merge common_id using "item`i'.dta" > drop _merge > sort common_id > } > > Friedrich > > > On Wed, Apr 11, 2012 at 10:41 AM, Prakash Singh <prakashbhu@gmail.com> wrote: >> Friedrich >> >> In the data set we have key using which we can make commonid for firm >> and based on commonid I would like to merge data set. >> >> On Wed, Apr 11, 2012 at 6:29 PM, Friedrich Huebler <fhuebler@gmail.com> wrote: >>> Prakash, >>> >>> Please explain how you want to merge the files. Stata has more than >>> one way to combine different datasets. >>> >>> Friedrich >>> >>> On Wed, Apr 11, 2012 at 8:10 AM, Prakash Singh <prakashbhu@gmail.com> wrote: >>>> Thanks a lot Friedrich >>>> >>>> This what I was thinking but I do not have even basic knowledge of >>>> programming in stata so was not able to keep hold of the issue, though >>>> I knew its possible to do it in stata. >>>> One more stupid question, is there way to programme the merging also >>>> for these file as its quite boring kind of do file repeating. >>>> >>>> Thanks in advance >>>> Prakash > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/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/statalist/faq * http://www.ats.ucla.edu/stat/stata/