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

 From Maarten buis To statalist@hsphsun2.harvard.edu Subject Re: st:matrices(in saved results post regression)not found Date Tue, 19 Aug 2008 15:44:13 +0100 (BST)

```The easiest way is to make new matrices and use those:
reg y x1 x2
matrix b = e(b)
matrix v = e(V)

svmat b
svmat v

Various ways of using returned results are also discussed in:
M.L. Buis (2007), "Stata tip 54: Where did my p-values go?", The Stata
Journal, 7(4), pp.584-586. http://home.fsw.vu.nl/m.buis/wp/pvalue.html

-- Maarten

--- Man Jia <jia.m@neu.edu> wrote:

> 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
> r(111);
> 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/
>

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http://uk.messenger.yahoo.com
*
*   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/
```