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

Re: st: identifying changed variables

From   "Austin Nichols" <>
Subject   Re: st: identifying changed variables
Date   Mon, 9 Jul 2007 15:04:54 -0400

Does this do what you want?

sysuse auto
replace rep78=4 if mi(rep78)
cf _all using "`c(sysdir_stata)'auto.dta"

On 7/9/07, Feiveson, Alan H. (JSC-SK311) <> wrote:
Hi  - After changing one or more variables, (in Stata 9) the -describe-
command reveals that changes have been made, but it doesn't say which
variables have changed. Does anyone know of a way to identify which
variables actually changed? For example, suppose one had 100 variables
and one created a number of new ones and/or modified old ones. Suppose
also that the user wants to keep the new data set only if "important"
variables were created or changed, but that he/she forgot which ones
were modified/created. Otherwise, if the command -save,replace- is
issued without "important" variables being changed, a lot of unwanted
"junk" variables would now be attached to the data set. Therefore it
would be useful to know exactly which variables were changed.

Al Feiveson
*   For searches and help try:

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