Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: RE: RE: Comparison operator, similar to "IN" in SAS?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: Comparison operator, similar to "IN" in SAS?
Date   Mon, 20 Sep 2010 23:54:11 +0200

<>

Nick`s tip at http://www.stata-journal.com/sjpdf.html?articlenum=dm0026 may
also be helpful to get a handle on the syntax...


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Xu, Haiyong
Sent: Montag, 20. September 2010 23:25
To: 'statalist@hsphsun2.harvard.edu'
Subject: st: RE: RE: Comparison operator, similar to "IN" in SAS?

Sorry, here is what "in" does in SAS.

IN operator: equal to one of a list
Example: num in (3, 4, 5)  /* If variable num has a value of 3 or 4 or 5,
this expression gives a value of 1; otherwise its value is 0. */
Thanks.



-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
Sent: Monday, September 20, 2010 2:19 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Comparison operator, similar to "IN" in SAS?


<>

What does "IN" do in Some Alternative Software, Haiyong? Do not assume
familiarity with another product...


HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Xu, Haiyong
Sent: Montag, 20. September 2010 23:08
To: 'statalist@hsphsun2.harvard.edu'
Subject: st: Comparison operator, similar to "IN" in SAS?

Hi,
Does Stata have a comparison operator that is similar to "IN" in SAS?
Thanks.
Haiyong

IMPORTANT WARNING:  This email (and any attachments) is only intended for
the use of the person or entity to which it is addressed, and may contain
information that is privileged and confidential.  You, the recipient, are
obligated to maintain it in a safe, secure and confidential manner.
Unauthorized redisclosure or failure to maintain confidentiality may subject
you to federal and state penalties. If you are not the intended recipient,
please immediately notify us by return email, and delete this message from
your computer.

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

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

IMPORTANT WARNING:  This email (and any attachments) is only intended for
the use of the person or entity to which it is addressed, and may contain
information that is privileged and confidential.  You, the recipient, are
obligated to maintain it in a safe, secure and confidential manner.
Unauthorized redisclosure or failure to maintain confidentiality may subject
you to federal and state penalties. If you are not the intended recipient,
please immediately notify us by return email, and delete this message from
your computer.

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

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