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: Reshape issue

From   James Bernard <>
Subject   st: Reshape issue
Date   Wed, 27 Feb 2013 17:09:53 +0800

Dear list members,

I was trying to reshape my dataset from wide to long, and realized
that the the identifier of each case has to be unique. The problem is
actually with the shape of my data-set. I cannot use -duplicates drop-
to do teh job due to the nature of my dataset which looks like this:

   Firm          sales_1990        sales_1991        sales_1992
--------------    --------------------     ------------------
ABC                10                      missing              missing
ABC                 missing              23                     missing
ABC                  missing            missing                15

it is panel data so the same thing goes for CDF and GFP

As you can see, I cannot make the cases unique.

Is there any way out of this quagmire?

I was thinking about finding a command that can make the sales in each
year being repeated for each firm. Then I could use _duplicates drop-

I appreciate your help!

*   For searches and help try:

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