Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: Time-series operators and -outreg-

 From John Luke Gallup To statalist@hsphsun2.harvard.edu Subject Re: st: Time-series operators and -outreg- Date Sun, 5 May 2013 17:52:17 -0700

Jeremy,

If you prefer putting stars directly on the chi^2 statistic, you can do that by suppressing the usual summary statistics with -noautosumm- and using the -addrow- option:

sysuse auto, clear
logit foreign mpg weight, nolog

local stars = (e(p)'<0.05 + e(p)'<0.01)
local chi2 : display %4.1f e(chi2) _dup(stars') "*"
outreg, noautosumm addrow("$\chi^2$", "chi2'" \ "Obs.", "e(N)'")

John

On May 4, 2013, at 10:10 AM, Jeremy Wells <jwell33@tigers.lsu.edu> wrote:

> Dr. Gallup,
>
> I see what you mean, but I did not mean to imply that you were responsible for the coding. I think this is a Stata issue in general and should be handled by Stata developers. (And since the issue seems to be everyone wants a different way of labeling operators, perhaps offer a -operator label- command similar to -variable label-.)
>
> Anyhow, I have another -outreg- question. I am using the -summstat- and -summtitle- options, and  I am putting in the following:
>
> summstat(chi2 \ p \ N) summtitle("$\chi^2$" \ "$p<\chi^2$" \ Obs.)
>
> All works fine except the LaTeX file is missing the "$p": > >$\chi^2$& 52.69\\ > <\chi^2$ & 0.00\\
> Obs. & 9,952\\
>
> I have tried several attempts to keep "$p" together, but nothing seems to work except "$[space]p" which, of course, puts in an obvious space that I do not want.
>
> Honestly, I would prefer putting stars on the chi^2 statistic, but I could not find a way of coding this, so the added line works as well. Any ideas?
>
> Thanks,
>
> Jeremy Wells
> Ph.D. Student
> LSU Dept. of Poli. Sci.
>
> *
> *   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/
`