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 on April 23, and its replacement, is already up and running.

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

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

From   "" <>
To   "" <>
Subject   st: Merge data for two panels in a panel data set
Date   Mon, 26 Mar 2012 15:35:55 +0100 (BST)

Dear all,

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 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

I would like to thank for your consideration in advance.


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index