Statalist The Stata Listserver


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

st: RE: Stata functions


From   "Feiveson, Alan H. (JSC-SK311)" <[email protected]>
To   <[email protected]>
Subject   st: RE: Stata functions
Date   Wed, 25 Jan 2006 08:19:23 -0600

Fred - Your example had the -if- qualifier  !min(b_*)  . What does it
mean?

Thanks

Al F.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Fred Wolfe
Sent: Monday, January 23, 2006 5:55 PM
To: [email protected]
Subject: st: Stata functions

Apropos of the recent discussion of inlist, I have often wondered why
Stata doesn't allow varlists in functions, but instead requires comma
separated lists. For example,

missing(,a,b,c,d,...) is required. Why not a varlist? I can't quite see
any difference. However, in terms of programming, a varlist is much
easier.

reg y  a b c if !min(b_*)

is much easier than typing each of the 10 b_ variables which may be long
and easy to misspell.

Fred



Fred Wolfe
National Data Bank for Rheumatic Diseases Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


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