|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: -if inlist-
From
Richard Williams <[email protected]>
To
[email protected]
Subject
Re: st: -if inlist-
Date
Thu, 21 Dec 2006 21:25:30 -0500
At 09:03 PM 12/21/2006, Lucy Shum wrote:
Do you mean, how do you use the and and or operators? See -help
if-. Examples for the help:Hi all,
How do I specify more than one criterion for commands such as tabulate/
histogram ?
Can one do "-if inlist" twice for say, tabulate?
If not, how does one go about specifying two (or more) criteria in a
command?
Lucy
. list make mpg if mpg>25 & mpg<30
This restricts the list to those cases where mileage is greater than
25 but less than 30.
. list make mpg if mpg>25 | mpg<10
This selects cases where mpg is either greater than 25 or less than 10.
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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 |