[email protected]
> I would still like to know if there is any easy way for
> labeling the values
> of my dummies using the following in my program.
>
> local cropnames "beans cassava maize rice...."
>
> local codes "beans cassava maize rice ........."
>
> local i = 1
> foreach x of local cropnames {
> local y : word `i' of `codes'
> lab define `x' 1 "`y'" 0 "no"
> capture forvalues j=1/46{
> label val `var'_d`j' `x'
> }
> local i = `i' + 1
I answered this question. Please see previous posting.
Nick
[email protected]
*
* 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/