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]

st: using e(sample) postestimation in Mata


From   László Sándor <[email protected]>
To   [email protected]
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.)

Thanks,

Laszlo
*
*   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