Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, is already up and running.

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

Re: st: mat list

From   Abhimanyu Arora <>
Subject   Re: st: mat list
Date   Tue, 10 Apr 2012 12:44:05 +0200


You can test this simply as follows
sysuse auto
reg  headroom trunk weight
mat beta=e(b)
mat list beta
di beta[1,1]*beta[1,2]
di 0.12160854*.0007635


On Tue, Apr 10, 2012 at 12:33 PM, Chiara Mussida <> wrote:
> Dear all,
> i run a reg and i need to use the coefficients for calculations purposes.
> After my reg i gen a matrix with my betas:
> mat beta=e(b)
> this is a 1*k vector of coef.
> To use them for my manipulation is it enough to refer to them- such:
> beta[1,col] or it is better to gen a scalar for each matrix element?
> Does stata save them?
> Thanks
> --
> Chiara Mussida
> PhD candidate
> Doctoral school of Economic Policy
> Catholic University, Piacenza (Italy)
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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