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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Quick way to save matrices as estimation results?


From   Matthew Baker <matthew.baker@hunter.cuny.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Quick way to save matrices as estimation results?
Date   Thu, 1 Nov 2012 12:22:57 -0400

Austin --

Thanks, that works brilliantly!

Matt

On Thu, Nov 1, 2012 at 11:34 AM, Austin Nichols <austinnichols@gmail.com> wrote:
> Matthew Baker <matthew.baker@hunter.cuny.edu>:
> 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
> <matthew.baker@hunter.cuny.edu> 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/



-- 
Dr. Matthew J. Baker
Department of Economics
Hunter College and the Graduate Center, CUNY
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index