Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Selecting default parameters and bundling variables in stata


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   Re: st: Selecting default parameters and bundling variables in stata
Date   Sun, 18 Sep 2005 04:42:57 -0500

You can do this with macros, as in the example below.

local vset1 x1 x2 x4 x7 x13 x18 x19 x25
global vset1 x1 x2 x4 x7 x13 x18 x19 x25



Is there a way to bundle variables together in groups so I can simply
type the groupname and all the variables in the group will be included?
And is there a way to set which parameters that are to be default when
running a command?

I'm thinking of something in the line of

set groupvar vset1 x1 x2 x4 x7 x13 x18 x19 x25
set groupvar vset2 x1 x3 x5 x6 x7 x13 x17
set default streg d(weibull) nolog nohr difficult

The commands could then be issued in a much easier manner like this

streg vset1
streg vset2
streg vset1 not x2
streg vset1 and x3




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