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

st: Re: basic question about varlist


From   "Marcela Perticara" <mperticara@uahurtado.cl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: basic question about varlist
Date   Mon, 4 Nov 2002 15:48:44 -0600

The command "unab" unabbreviates a varlist.
Type findit unab.


----- Original Message -----
From: "Radu Ban" <rban@nber.org>
To: <statalist@hsphsun2.harvard.edu>
Sent: Tuesday, November 05, 2002 12:36 PM
Subject: st: basic question about varlist


> I placed a list of variables in a local using abbreviations recognized by
> varlist:
>
> local outcomes "var1-var10 othervar* ..."
>
> How can I get Stata to read it as a varlist so that i can tokenize it
> properly?
>
> Here's what I need this for: I have defined several regressions:
> local reg1 "reg `1' varlist1"
> local reg2 "reg `1' varlist2"
> ...
> I want to run these regressions for all the outcome variables in the above
> mentioned list and I want to capture the coefficients and errors in
scalars
> indexed by the nr of the outcome variable. So to begin, I want to know how
> to read that list as a varlist.
>
> Thanks in advance,
>
> Radu Ban
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index