Statalist


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

st: RE: Xtivreg2 with RE?


From   "Schaffer, Mark E" <[email protected]>
To   <[email protected]>
Subject   st: RE: Xtivreg2 with RE?
Date   Mon, 6 Apr 2009 17:01:36 +0100

Carlo,

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> [email protected]
> Sent: Monday, April 06, 2009 3:44 PM
> To: [email protected]
> Subject: st: Xtivreg2 with RE?
> 
> Dear statalist users,
> I would need a command to estimate IV panel with robust s.e. 
> and random
> effects, i.e., an xtivreg2 allowing the RE option. Does 
> anybody know of
> something available?

I have a version of -xtivreg2- that does RE and other things, but it
isn't distributable yet.

There may be an easy alternative for you, though, namely -xtoverid-.

-xtoverid- (available from ssc-ideas in the usual way) reestimates an
-xtivreg- or -xtivreg2- regression in order to calculate the
Sargan-Hansen J statistic.  It accepts -robust- and -cluster-, and
internally it will reestimate the equation using these options.

-xtoverid- has an undocumented option -noi- that displays the internal
re-estimation results.  This means you can see the estimation results
with robust or cluster-robust SEs.

It's not ideal because what you'll see is Stata temporary variable names
for the coefficients instead of the variables you've used.  But you can
tell which is which by matching the coefficients to the output from
using -xtivreg- with non-robust SEs.

After your -xtivreg- estimation, just do

xtoverid, noi robust

(or cluster-robust if that's what you want).

Hope this helps.

Cheers,
Mark


> Thanks
> Carlo
> 
> 
> Please access the attached hyperlink for an important 
> electronic communications disclaimer: 
> http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
> 
> *
> *   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/
> 


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.


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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index