For a while I am thinking of a better way to post estimation results of my user written commands. Most of my commands are written in Mata and I find the ereturn capabilities sometimes limiting. In particular when it comes to returning large matrices, string matrices, transformed data (for example different residuals, outcomes of MCMCs) or set of results. In addition if I want to use ereturn(), it requires some additional coding.
My solution so far is to use Mata's array functions. For example for my program called "myprog" it returns a mata array "myprog" which then has a key called "N" for the number of observations, "T" for time periods, "res" for residuals etc. I find this solution quite handy because I can write mata subprograms which can alter the contents of the array or add keys. Also I can write predict or estat programs which use the array.
My question is: does anyone have experience using arrays or maybe even a better solution?
Related Posts with Alterantives to posting estimation results (ereturn)
helpI am working on a database containing the region variable. Is there a possibility to transform this …
Margins and Ologit2Hello, I am fitting a ologit2 model for an ordered outcome - HIVrisk (none, low and high). I am tryi…
How i can interpret this model? *Prob > chi2 = * *0.0000 Code: * Model A . eststo A, title ("Model A"): xtmixed Y X2 X1 time c.X2#c.time c.X1#c.time grou…
Using twoway histogram to plot bar graphsHello, I would like to plot two variables in overlaid bars that have the same 7 categories (pre_occ…
HelpHi, it's not a question about stata, but maybe you can give me a guide. I am trying to get a histog…
Subscribe to:
Post Comments (Atom)
0 Response to Alterantives to posting estimation results (ereturn)
Post a Comment