Statalist The Stata Listserver


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

st: Stata functions


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   st: Stata functions
Date   Mon, 23 Jan 2006 17:54:55 -0600

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/




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