Dear Statalisters,
try the following in Stata. Why does the change flag not go to 1 after
editing the variable labels with a do-file?
*********
sysuse auto, clear
local change "new"
foreach var of varlist make-foreign{
local vl: var label `var'
la var `var' `"`vl' `change'"'
}
***data should have changed...
qui d
***but have not
di in red "Change flag at: " r(changed)
***now "real" change
drop dis
qui d
***now real change
di in red "Change flag at: " r(changed)
*********
Martin Weiss
_________________________________________________________________
Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany
Fon: 0049-7071-2978184
Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130
Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131
SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945
*
* 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/