Statalist


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

Antwort: st: Prob with -rename-


From   Richard Ochmann <ROchmann@diw.de>
To   statalist@hsphsun2.harvard.edu
Subject   Antwort: st: Prob with -rename-
Date   Tue, 13 May 2008 10:43:06 +0200

**********
set varabbrev off
**********

should help. however, i agree that there should be a warning in case variable abbreviations are set on.

Rich

-----owner-statalist@hsphsun2.harvard.edu schrieb: -----

An: <statalist@hsphsun2.harvard.edu>
Von: "Martin Weiss" <martin.weiss@uni-tuebingen.de>
Gesendet von: owner-statalist@hsphsun2.harvard.edu
Datum: 13.05.2008 10:03AM
Thema: st: Prob with -rename-

Dear Statalisters,

I am currently dealing with a nasty problem. Try the following:

**********
clear*
set obs 100
g x14 = 0
g x2=5
rename x1 x90
**********

The last -rename- simply hijacks variable x14  and renames it x90. If I
wanted this behavior, I would say -rename x1? X90-. Should -rename- not
alert me to the fact that there is no such variable?

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index