Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: newbie question on replacing variables in do file


From   "Alan Acock" <[email protected]>
To   <[email protected]>
Subject   st: newbie question on replacing variables in do file
Date   Fri, 13 Feb 2004 20:18:04 -0800

When I run a series of commands to generate new variables in a do file and
realize I made a mistake on one of them, I would like to fix the mistake,
highlight the section of commands, and run the selection. When I do this,
Stata says the generated variables already exist. Sooooo, I need to drop
each variable I created in the series of commands, and then re-run them. I
assume this is a way Stata has to prevent accidently replacing a variable.
QUESTION: How can I have the gen and egen commands replace the variables I
want it to replace rathr than having to first drop them???
Alan Acock
[email protected]

*
*   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