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, statalist.org is already up and running.


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

Re: st: reshaping with multiple identifiers


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: reshaping with multiple identifiers
Date   Sat, 31 Mar 2012 17:35:46 +0100

You asked the same question yesterday and there were no answers. When
that happens it is best to assume that the original question was not
clear enough. Actually this version is even less informative than
yesterday's!

In this case, I see only that you want to -reshape- and that your
attempts to do that don't satisfy. But you don't explain what most of
these variables are. I can guess at -hhid- and -year-. Perhaps -mo-
means "month". Why should have to guess?

Nor do you show us the structure you want. What would a typical
observation look like in the ideal structure?

Nick

On Sat, Mar 31, 2012 at 2:00 PM, Mintewab Bezabih
<Mintewab.Bezabih@economics.gu.se> wrote:

> I was trying to reshape wide my data using the command below:
>
>
> egen both=group (  year mo ), label
> egen new=group ( kebele hhid s25q3 ), label
>
> reshape wide mavg , i(new)  j( both)
>
> my variables are : s25q3   hhid    kebele  year    mo
>
> but while my code runs fine, I just end up with almost no observations in the reshaped file. I would appreciate any suggestion on how I could do this right
>

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