Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: from labels to variables


From   "Fanwell Kenala Bokosi" <[email protected]>
To   <[email protected]>
Subject   st: from labels to variables
Date   Sat, 4 Mar 2006 21:07:08 -0000

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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index