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]
st: matrix results saved
From
Rodrigo Briceño <[email protected]>
To
[email protected]
Subject
st: matrix results saved
Date
Thu, 11 Nov 2010 09:41:19 -0600
Dear Stata Users. 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]
lags:
12
r1 22.942303
matrix list pbg
symmetric pbg[1,1]
lags:
12
r1 .02821978
My new question to the list is: it is possible to just extract the r1
values expressed in both matrix?
Thanks for your help
*
* 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/