Statalist


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

st: Flag for Change bug?


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: Flag for Change bug?
Date   Fri, 18 Apr 2008 12:09:12 +0200

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/



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