Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: matrices(in saved results post regression)not found


From   "Martin Weiss" <martin.weiss@uni-tuebingen.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: matrices(in saved results post regression)not found
Date   Tue, 19 Aug 2008 16:42:27 +0200

Put the estimation results into a new matrix and it will work


**********
sysuse auto,clear
reg weight pr disp
mat def A=e(V)
svmat A
**********

HTH 
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Man Jia
Sent: Tuesday, August 19, 2008 4:30 PM
To: statalist@hsphsun2.harvard.edu
Subject: st:matrices(in saved results post regression)not found

Hi all,

I was wondering if anyone could help me with a simple question of 
matrices in saved results after regression.

When I do the following command , it works well:
. reg y x1 x2
.matrix list e(b)
.matrix list e(V)

But then when I try to change the matrices into variables, like
.svmat e(b),names(reg)
or 
.svmat e(V),names(variance)

stata shows 
matrix e(b) not found
r(111);
matrix e(V) not found
r(111);
-------------------------------
I know I must have lost something very basic here. Could anyone give me 
some hint why matrices e(b) and e(V) are listed well in the beginning 
but then they are not found? 

Thanks for your time!

Mandy Jia

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index