Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Merge data for two panels in a panel data set


From   "rado645-bg@yahoo.de" <rado645-bg@yahoo.de>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Merge data for two panels in a panel data set
Date   Mon, 26 Mar 2012 16:54:15 +0100 (BST)

Dear Nick,

I have about 60 different variables over 60 quarters in a sample of 120 firms. The two firms are among those 120 firms. 


I guess it would be rather time consuming to do it in the way you suggest.

Rado



----- Ursprüngliche Message -----
Von: Nick Cox <njcoxstata@gmail.com>
An: statalist@hsphsun2.harvard.edu
CC: 
Gesendet: 16:43 Montag, 26.März 2012
Betreff: Re: st: Merge data for two panels in a panel data set

If this is just two firms, why is the answer not item1[41] +
item1[42], etc., where naturally you should insert the observation
numbers relevant?

Nick

On Mon, Mar 26, 2012 at 3:35 PM, rado645-bg@yahoo.de
<rado645-bg@yahoo.de> wrote:

> I have two firms in a data set that merge at a given point of time. For a specific reason, I need to sum the observations over their balance sheet items in each period of time. Would that be possible in Stata?
>
>
> The dataset looks like that:
>
> Firm        Date    Item1    Item2    Item3
>
>
> Firm1     Date1   Item1    Item2    Item3
>
> Firm2      Date1   Item1     Item2    Item3
>
> Firm3      Date1  Item1    Item2     Item3
>
> ...so on.
>
> I would like to merge in each period of time the data for firm 1 and firm 2 so the dataset will look like that:
>
>
> The dataset looks like that:
>
> Firm                  Date     Item1  Item2  Item3
>
>
> Merged_Firms    Date1  Item1  Item2  Item3
>
> Firm3               Date1  Item1  Item2  Item3
>

*
*   For searches and help try:
*  http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/statalist/faqhttp://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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index