Statalist


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

RE: st: RE: curious behavior of drop


From   Michael McCulloch <mm@pinest.org>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: RE: curious behavior of drop
Date   Sun, 6 Jul 2008 13:40:01 -0700

Thank you Scott for your explication and Martin for introducing _set varabbrev off_.
I had leapt to the assumption that my problem was with _drop_.
With some embarassment, I can now report that I had renamed the "missing" age variable to dxage...
My apologies.



What is your story for Michael`s observation then?

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


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Scott Merryman
Sent: Sunday, July 06, 2008 10:22 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: curious behavior of drop

I don't think -set varabbrev- would matter because age is not an
abbreviation; it uniquely identifies the variable.

For example:

. clear
. set obs 1
obs was 0, now 1
. gen age =1
. gen agecat = 1
. set varabbrev on
. drop age
. ds
agecat

. clear
. set obs 1
obs was 0, now 1
. gen age =1
. gen agecat = 1
. set varabbrev off
. drop age
. ds
agecat

Scott

On Sun, Jul 6, 2008 at 2:32 PM, Martin Weiss
<martin.weiss@uni-tuebingen.de> wrote:
 -set varabbrev off- to prevent it...

 Martin Weiss
*
*   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/

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