Statalist


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

Re: st: identifying changed variables


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

Alan--
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) <[email protected]> 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:
*   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