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

st: RE: Xtivreg2 with RE?

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


> -----Original Message-----
> From: 
> [] On Behalf Of 
> Sent: Monday, April 06, 2009 3:44 PM
> To:
> 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.


> Thanks
> Carlo
> Please access the attached hyperlink for an important 
> electronic communications disclaimer: 
> *
> *   For searches and help try:
> *
> *
> *

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

*   For searches and help try:

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