Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: using e(sample) postestimation in Mata

From   László Sándor <>
Subject   st: using e(sample) postestimation in Mata
Date   Sun, 2 Dec 2012 16:11:01 -0500

Hi all,

In Stata 11 (and above) on various platforms, I would like my Mata
function to piggy-back on a previous -regress-, partly to manage
collinear variables etc. (but also for comparison).

But then my Mata code should call -e(sample)- to keep the estimation
sample. As this is neither a macro or a variable, I don't know how to
call it from Mata. Or shall I just simply generate a tempvar and plug
that into Mata?

(Less elegant though.)


*   For searches and help try:

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