Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: RE: problems combining xtivreg and xtoverid or using xtivreg2 with random effects estimation

From   "Schaffer, Mark E" <>
To   <>
Subject   st: RE: problems combining xtivreg and xtoverid or using xtivreg2 with random effects estimation
Date   Thu, 29 Sep 2011 16:24:25 +0100


> -----Original Message-----
> From: 
> [] On Behalf Of Schneng
> Sent: 29 September 2011 16:09
> To:
> Subject: st: problems combining xtivreg and xtoverid or using 
> xtivreg2 with random effects estimation
> --> I posted this earlier, but it didn't appear at the 
> statalist, so I 
> --> tried
> to post it again. I hope that the first post doesn't pop up 
> somewhere and confuses you.
> Dear Statalist,
> for my Master's Thesis I'm currently dealing with a Panel 
> Data Analysis and Instrumental Variables, in fact with a 
> xtivreg. The problem that occurred is, that there is no 
> proper and adequate way to make a random effects estimation. 
> Xtivreg does one though, but the post estimation for relevant 
> and weak instruments doesn't work well. I tried xtoverid, but 
> this fails due to the omitted variable problem (have a look here:

The "omitted variable problem" is as described in the post you link to:
"-xtoverid- was written before Stata introduced the omitted variable
operator "o".  Variables are being dropped from your estimation and
being reported as such with an "o." in front of them, and -xtoverid-
doesn't understand this."

>  Even if I drop all omitted variables xtoverid doesn't work.

But this is peculiar.  If you estimate using -xtivreg- but exclude all
the variables that Stata is dropping, -xtoverid- should now work.  

Can you show us the output of -xtivreg- with the variables omitted?

There's one other idea that comes to mind, namely version control.  "o."
was introduced in Stata 11, if I recall.  It's possible that if you
precede your -xtivreg- estimation with the line

version 10

-xtivreg- will not report using "o." for omitted variables, and the
subsequent call to -xtoverid- may then work.  The -version- statement
will need to be in a do file along with the subsequent -xivreg- call.

> Xtivreg2 on the other hand can't deal with random effects. 
> In a few posts and e-mails on Statalist I read, that there is 
> a xtivreg2 version developed, which can handle the random 
> effects and the statistics around that. 
> Maybe this would solve my problem?
> (
> statistic-td5660893.html#a5661971) 
> Thank you very very much.
> Kind regards, Daniel Schalling.
> --
> View this message in context: 
> reg-and-xtoverid-or-using-xtivreg2-with-random-effects-estimat
> ion-tp6844236p6844236.html
> Sent from the Statalist mailing list archive at
> *
> *   For searches and help try:
> *
> *
> *

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

Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index