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, is already up and running.

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

st: From: Matthew Baker <>

Subject   st: From: Matthew Baker <>
Date   Thu, 1 Nov 2012 11:21:38 -0400

Dear Listers --

For various reasons, I am trying to pull matrices from mata into
stata, and then quickly (and perhaps a bit haphazardly) display and
store them as estimation results. My hope is that this can be done
without having to write an entire estimation command, as the matrices
are rather large and clumsy. Anyways, here is a little code that shows
what I am trying to do:

/* begin example */
clear all
mat colnames b=b1 b2 b3
mat colnames V=b1 b2 b3
mat rownames V=b1 b2 b3
ereturn post b V
ereturn display
est store basemodel

/* end example */

While all the commands work up until the last one, the last command
gives me an error:

last estimation results not found, nothing to store

To elaborate, the idea is to trick stata into thinking it has produced
estimation results so I can use estout, etc. to make nice tables and
things from the matrices. Any advice?


Matt Baker

Dr. Matthew J. Baker
Department of Economics
Hunter College and the Graduate Center, CUNY
*   For searches and help try:

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