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: Saving first-stage y_hat from xtivreg2
From
[email protected]
To
[email protected]
Subject
st: Saving first-stage y_hat from xtivreg2
Date
Mon, 14 Mar 2011 17:39:18 +0000
Hi, I have an issue getting stata to predict first-stage y2_hat. Can someone help please?
My data are panel.
My model is:
xtivreg2 y1 x1 x2 x3 (y2 = z1), gmm2s kernel barlett bw(1) fe first
So first stage is:
y2 x1 x2 x3 z1
How do I get predicted y2 please?
Tried "predict pred_y2, equation(first)" but this doesn't work.
Thanks!
May
------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/