Bookmark and Share

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: Quick way to save matrices as estimation results?


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: Quick way to save matrices as estimation results?
Date   Thu, 1 Nov 2012 11:34:54 -0400

Matthew Baker <[email protected]>:
Try

clear all
prog def et, eclass
 if replay() {
  syntax [anything] [, EForm(string) Level(real 95) ]
  eret di, eform(`eform') level(`level')
  }
 else {
args b V
forv i=1/`=colsof(`b')' {
 loc c b`i'
 }
mat colnames `b'=`c'
mat colnames `V'=`c'
mat rownames `V'=`c'
ereturn post b V
ereturn local cmd "et"
ereturn local properties "b V"
ereturn display
}
end
mata:
b=1,2,3
V=I(3)
st_matrix("b",b)
st_matrix("V",V)
end
et b V
est store basemodel
esttab


On Thu, Nov 1, 2012 at 11:22 AM, Matthew Baker
<[email protected]> wrote:
> Listers --
>
> My apologies...the previous mail I sent should have the above subject heading!
>
> Matt Baker
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index