Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Coloring specific cells using -estout- and latex


From   Bert Jung <bjung59@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Coloring specific cells using -estout- and latex
Date   Tue, 12 Oct 2010 23:06:40 -0400

Thanks very much Kieran.  I have my eye on those latex commands you
mention.  The problem is targeting individual cells (or at least
specific models/columns).  The example I cited colors all rows in the
same way, by applying the code to each coefficient, t-statistic, etc.

I am coming to think my goal might not be possible without looking
into the -estout- ado.

Cheers,
Bert

On Sat, Oct 9, 2010 at 7:38 PM, Kieran McCaul <Kieran.McCaul@uwa.edu.au> wrote:
> ...
>
> I don't know if this will help, but you can colour cells in Latex using
> the package colortbl. So you'd have to install and use this package in
> your Latex code: \usepackage{colortbl}
>
> Then you can change the colour of a cell in a table to red, for example,
> by inserting \cellcolor{red} into the Latex code for that cell:
> text & text & \cellcolor{red} text & text  \\
>
> I don't use -estout- so I haven't tried this, but using the example in
> the previous thread that you cited, I'd try (par("\cellcolor{red} " "")
> in the cells that you wanted coloured red.
>
>
>
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Bert Jung
> Sent: Saturday, 9 October 2010 10:38 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Coloring specific cells using -estout- and latex
>
> Dear Statalisters,
>
> I am looking for a way to color certain cells in a latex table
> produced by -estout-.  The goal is the highlight individual cells of
> coefficients (not rows or columns).  For instance, I want the
> coefficient on the third variable in the second model to be in red.  I
> imagine the process would be similar to -estout-'s assigning of
> significance stars to coefficients, although I would prefer to define
> my target cells directly and manually.
>
> An existing thread shows how to color variable names and rows a RTF
> table with -estout-.  However, all rows are treated the same, e.g. the
> rows of coefficients are blue and the t-statistics red.  My interest
> is in selected cells only.
>
> http://www.stata.com/statalist/archive/2009-08/msg01125.html
>
> Thanks for any pointers,
> Bert
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/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/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index