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]
Re: st: mat list
From
Abhimanyu Arora <[email protected]>
To
[email protected]
Subject
Re: st: mat list
Date
Tue, 10 Apr 2012 12:44:05 +0200
Hi
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
Cheers
Abhimanyu
On Tue, Apr 10, 2012 at 12:33 PM, Chiara Mussida <[email protected]> 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:
> * 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/