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]

st: RE: matrix results saved

From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: matrix results saved
Date   Thu, 11 Nov 2010 15:43:55 +0000

Extract in what way? 

[email protected] 

Rodrigo Briceño

Yesterday I posted a request about how to include
Chi2 statistics and p-values from Breusch Godfrey Test into estout
results. After doing an all-day research, since I'm not a Stata
Programming expert, I discovered that Breusch Godfrey produces matrix
results instead of scalar results (as estat hettest, for testing
heteroskedasticity does).

I also discovered that by especifying  matrix bg=r (chi2) and matrix
pbg= r(p) I was able to save chi2 values and p-values for the test.
When I list the results I can see something like this:

matrix list bg

symmetric bg[1,1]
r1  22.942303

matrix list pbg

symmetric pbg[1,1]
r1  .02821978

My new question to the list is: it is possible to just extract the r1
values expressed in both matrix?

*   For searches and help try:

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