Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Titles in a loop using -outreg2-
From
"Ferreira de Avila, Guilherme " <[email protected]>
To
[email protected]
Subject
st: Titles in a loop using -outreg2-
Date
Fri, 2 Aug 2013 19:15:54 -0400 (EDT)
Hi Listers,
I am trying to include various titles and notes for each table using a loop and -outreg2-.
Is there a way to incorporate it in the loop?
I am using Stata 12 for Windows.
Right now it looks something like this:
foreach y of global fullv {
reg `y' greek if male==1, vce(cluster school)
outreg2 using tablemen`y', dec(4) label append word ctitle(Male)
}
Each table would have a different title, such as "ti(Drinks per Hour)" or "ti(Binge Drinking during the Last Two Weeks - Self-Reported)" and notes such as "addn(Drinks per hour are calculated based on answers of how many drinks were consumed by the respondent over how many hours during the last time he or she partied/socialized. Coefficients on dummy variables for missing values of independent variables are not shown)".
Thank you for taking the time,
Guilherme
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/