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/