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)" <>
To   <>
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


Al F.

-----Original Message-----
[] On Behalf Of Fred Wolfe
Sent: Monday, January 23, 2006 5:55 PM
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

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 Wolfe
National Data Bank for Rheumatic Diseases Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index