Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: [Fwd: RE: Re: Create dummy]


From   mmolina@uniroma3.it
To   statalist@hsphsun2.harvard.edu
Subject   st: [Fwd: RE: Re: Create dummy]
Date   Thu, 20 Nov 2008 13:38:10 +0100 (CET)

-----Original Message-----
From: mmolina@uniroma3.it [mailto:mmolina@uniroma3.it]
Sent: Thursday, November 20, 2008 1:22 PM
To: martin.weiss1@gmx.de
Subject: st: Re: Create dummy

Thanks a lot Martin.
As you supossed it was -label-led, so I looked for the underlying numeric
for "no" via -ta b8, nolabel- and I did it.
Regards,
Alejandra
----------------------------------------------------------------------------
----
>From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Create dummy
Date   Thu, 20 Nov 2008 00:02:45 +0100

----------------------------------------------------------------------------
----
Well, if it is a -double- then you cannot match it with a string in the
-if code - qualifier. I bet it is -label-led, so look for the underlying
numeric for "no" via -ta b8, nolabel- and say

replace quality = 1 if b8==0

(if 0 is labelled "no")

HTH
Martin
_______________________





*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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