Saturday, March 04, 2006
Re: st: from labels to variables
Not clear exactly what you want, but see -help decode- and -help encode- for turning labels into values or vice versa. If you mean to make variables cropid101, cropid102, etc. then see -help reshape-. You question would be more scrutable if you gave the before and after versions of what you want to do.
On 3/4/06, Fanwell Kenala Bokosi <email@example.com> wrote: > Statalisters, > > I have data that I want to transform and I do not know the fastest way to to > it. I have a variable named cropid and saleval recoded per household > > The data set is like this > > hhid cropid saleval > 1 101 2000 > 1 102 3000 > 1 103 1000 > 2 101 200 > 3 102 1300 > 3 103 1500 > > I want to recode the data such that each cropid label values becomes a > variable. How do i go about doing this. > > Please help > > > * > * For searches and help try: > * http://www.stata.com/support/faqs/res/findit.html > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ >
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/