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]

From |
"Kieran McCaul" <Kieran.McCaul@uwa.edu.au> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Coloring specific cells using -estout- and latex |

Date |
Sun, 10 Oct 2010 07:38:32 +0800 |

... 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/

**Follow-Ups**:**Re: st: RE: Coloring specific cells using -estout- and latex***From:*Bert Jung <bjung59@gmail.com>

**References**:**st: Coloring specific cells using -estout- and latex***From:*Bert Jung <bjung59@gmail.com>

- Prev by Date:
**Re: st: Saving simulation runs** - Next by Date:
**st: answered my own question - re: centering bars over x-axis ticks** - Previous by thread:
**st: Coloring specific cells using -estout- and latex** - Next by thread:
**Re: st: RE: Coloring specific cells using -estout- and latex** - Index(es):