Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Some basic help on programming


From   Prakash Singh <[email protected]>
To   [email protected]
Subject   Re: st: Some basic help on programming
Date   Thu, 12 Apr 2012 12:01:43 +0530

Friedrich, what about merging the data if I have two different level
data  with item_code, for example lev3_list and leve4_list.

Thanks for references


Prakash


On Thu, Apr 12, 2012 at 12:10 AM, Huebler <[email protected]> wrote:
> www.stata.com/links/resources.html
> www.google.com
>
> On Wed, Apr 11, 2012 at 1:52 PM, Prakash Singh <[email protected]> wrote:
>> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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/
>
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index