Bookmark and Share

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

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

Re: st: How to include postestimation results (matrix form) in a regression table created by outreg2?

From   Nick Cox <>
Subject   Re: st: How to include postestimation results (matrix form) in a regression table created by outreg2?
Date   Thu, 14 Jun 2012 09:19:04 +0100

You may get a detailed reply from a user of -outreg2- (SSC, as you are
asked to explain). Otherwise the generic advice about support on
-outreg2- given in (for example)

still stands. In addition, it may help to be aware that -outreg2- has
not been updated since 2010. That in itself certainly does not rule
out there being a solution for your problem. But it does imply that
the discussion in the documentation of -outreg2- of the quite
different program -outreg- is now seriously out-of-date.

-outreg2- (author Roy Wada) was originally made public as an extension
of -outreg- (SJ, SSC; John Gallup) at a time when it appeared that
-outreg- was not being developed further. But since then John has
extensively rewritten -outreg- and is actively maintaining it.
Evidently neither author wishes to change their program's name.


On Thu, Jun 14, 2012 at 8:19 AM, Martin Stürmer
<> wrote:

> sorry for reposting. I would be very grateful, if somebody could help me. I
> would like to include a matrix of post-estimation results in a table created
> by outreg2.
> In more detail, I run a regression of the type:
> regress x l.x y l.y
> I than run a Breusch-Godfrey Test of serial correlation of order 1 and 2:
> estat bgodfrey, lags(2)
> I would like to add the two sided p-values of this test to a regression
> table using outreg2. These values are saved in the 1x2 matrix r(p).
> Using
> outreg2 using myfile, tex addstat(BG-test p-value, r(p)) I obtain the error
> "type mismatch" due to the fact that r(p) is a 1x2 matrix
> How to add this matrix to the regression table?

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index