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]

st: reshaping with multiple coordinates


From   Mintewab Bezabih <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: reshaping with multiple coordinates
Date   Fri, 30 Mar 2012 16:51:02 +0200

Dear Statalisters, 

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 data looks like this 

s25q3	hhid	kebele	year	mo
maize	1	1	2006	1
potatoes	1	1	2005	1
grass	1	1	2004	1
sinar/ge	1	1	2003	1
sinar/ge	1	1	2002	1

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

many thanks 

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