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]
Re: st: -estout- question: Putting model numbers below mlabels
From
[email protected]
To
[email protected]
Subject
Re: st: -estout- question: Putting model numbers below mlabels
Date
Thu, 7 Mar 2013 13:56:54 -0500
Ryan,
Thanks so much! That seems to do the trick.
Thanks,
Max
Max Livingston
Sr. Research Analyst
Microeconomic Studies
Research and Statistics Group
Federal Reserve Bank of New York
(212) 720-7894
From: Ryan Kessler <[email protected]>
To: [email protected],
Date: 03/07/2013 10:18 AM
Subject: Re: st: -estout- question: Putting model numbers below
mlabels
Sent by: [email protected]
How about something like this?
sysuse auto
eststo clear
eststo : reg mpg price
eststo : reg mpg price weight
eststo : reg displacement price
eststo : reg displacement price weight
local titles "& Title 1 & Title 2 & Title 3 & Title 4 \\"
local numbers "& (1) & (2) & (3) & (4) \\ \hline"
esttab using test.tex, mgroups("Group 1" "Group 2", pattern(1 0 1 0 )
///
prefix(\multicolumn{@span}{c}{) suffix(}) span
erepeat(\cmidrule(lr){@span})) ///
mlabels(none) nonumbers posthead("`titles'" "`numbers'")
Ryan
On Thu, Mar 7, 2013 at 8:58 AM, <[email protected]> wrote:
> Hi Ryan,
>
> Thanks for the advice. However, I'm already using mgroups; I have six
> columns, 3 in each group, and I want them to be numbered 1-6. So, since
> I'm already using it to group the models, I don't think I can use it
again
> to do what you're suggesting (although correct me if I'm wrong). I'll
give
> an example of what I'm trying to achieve:
>
>
>
> I'm not sure if that will show up on statalist, but essentially there
are
> 3 rows: the group header, the model titles, and then the column numbers.
> Estout does this perfectly fine, except that it puts the numbers above
the
> model titles, and I need it to be below. I know this is a very
particular
> and persnickety request, but I just feel like it has to be possible.
>
> Thanks,
> Max
>
>
>
> Max Livingston
> Sr. Research Analyst
> Microeconomic Studies
> Research and Statistics Group
> Federal Reserve Bank of New York
> (212) 720-7894
>
>
>
> From: Ryan Kessler <[email protected]>
> To: [email protected],
> Date: 03/06/2013 09:29 PM
> Subject: Re: st: -estout- question: Putting model numbers below
> mlabels
> Sent by: [email protected]
>
>
>
> Hi Max,
>
> I believe -mgroups()- will do the trick:
>
> sysuse auto
> eststo clear
> eststo: reg mpg price
> eststo: reg mpg price weight
> eststo: reg mpg price weight turn
> esttab, mgroups("A" "B" "C", pattern(1 1 1)) mlabels(none)
>
> Ben Jann provides a better example here -->
> http://repec.org/bocode/e/estout/advanced.html.
>
> Best,
>
> Ryan Kessler
>
> On Wed, Mar 6, 2013 at 3:06 PM, <[email protected]> wrote:
>> Hello,
>>
>> I am using the -estout-/-esttab- package by Ben Jann. I can't seem to
>> figure out how to get the model numbers (e.g., (1) (2) (3)...) below
the
>> model labels (specified using mlabels("a" "b" "c"). Anyone have any
>> suggestions?
>>
>> Thanks,
>> Max
>>
>>
>> Max Livingston
>> Sr. Research Analyst
>> Microeconomic Studies
>> Research and Statistics Group
>> Federal Reserve Bank of New York
>> (212) 720-7894
>>
>>
>>
>>
>> This e-mail message, including attachments, is for the sole use of the
> intended recipient(s) and may contain confidential or proprietary
> information. If you are not the intended recipient, immediately contact
> the sender by reply e-mail and destroy all copies of the original
message.
>> *
>> * 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/
>
> *
> * 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/
>
>
>
>
>
>
> This e-mail message, including attachments, is for the sole use of the
intended recipient(s) and may contain confidential or proprietary
information. If you are not the intended recipient, immediately contact
the sender by reply e-mail and destroy all copies of the original message.
> *
> * 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/
*
* 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/
This e-mail message, including attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message.
*
* 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/