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

st: Flag for Change bug?

From   "Martin Weiss" <>
To   <>
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

Fon: 0049-7071-2978184




*   For searches and help try:

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