<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mostly Harmless Econometrics</title>
	<atom:link href="http://www.mostlyharmlesseconometrics.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mostlyharmlesseconometrics.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 00:00:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>QOB Qonfusion</title>
		<link>http://www.mostlyharmlesseconometrics.com/2012/01/qob-qonfusion/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2012/01/qob-qonfusion/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 22:13:44 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=898</guid>
		<description><![CDATA[Ilyssa wonders Question: In Table 4.1.1 (p. 124), how are there 30 instruments in Column 8 rather than 27 (= 3 qob dummies * 9 year of birth dummies)? Why indeed?  There are still 3 QOB main effects. JA]]></description>
			<content:encoded><![CDATA[<p>Ilyssa wonders</p>
<p><em>Question: In Table 4.1.1 (p. 124), how are there 30 instruments in Column 8 rather than 27 (= 3 qob dummies * 9 year of birth dummies)? </em></p>
<p>Why indeed?  There are still 3 QOB main effects.</p>
<p>JA</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2012/01/qob-qonfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imbens and Angrist Discover LATE</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/11/imbens-and-angrist-discover-late/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/11/imbens-and-angrist-discover-late/#comments</comments>
		<pubDate>Sun, 27 Nov 2011 04:08:51 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=894</guid>
		<description><![CDATA[&#8230; in the the Andean foothills, Chile, November 2011]]></description>
			<content:encoded><![CDATA[<p>&#8230; in the the Andean foothills, Chile, November 2011</p>
<div id="attachment_895" class="wp-caption alignleft" style="width: 310px"><a href="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/11/20111111_orange_2478.jpg" rel="lightbox[894]"><img class="size-medium wp-image-895" src="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/11/20111111_orange_2478-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">LACEA: Santiago, November 2011</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/11/imbens-and-angrist-discover-late/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mostly Harmless in Hungary</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/11/mostly-harmless-in-hungary/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/11/mostly-harmless-in-hungary/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 01:29:59 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=885</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_886" class="wp-caption alignleft" style="width: 624px"><a href="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/11/6274634584_18317e1fa7_b.jpg" rel="lightbox[885]"><img class="size-medium wp-image-886" src="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/11/6274634584_18317e1fa7_b-e1321233939751-300x200.jpg" alt="" width="614" height="408" /></a><p class="wp-caption-text">with the students of Rajk College, after receiving the Von Neumann Award</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/11/mostly-harmless-in-hungary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Covariate Contradiction?</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/10/covariate-contradiction/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/10/covariate-contradiction/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 15:59:45 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Corrections]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=879</guid>
		<description><![CDATA[Thoughtful reader Nikhil from UBC asks: I had a question regarding LATE. In your book you say in a model with covariates, 2SLS leads to a sort of "covariate averaged LATE" even when one does not have a saturated model. Does this mean that as one introduces covariates the 2SLS estimator is most likely to [...]]]></description>
			<content:encoded><![CDATA[<p>Thoughtful reader Nikhil from UBC asks:</p>
<pre>I had a question regarding LATE. In your book you say in a model with
covariates, 2SLS leads to a sort of "covariate averaged LATE" even
when one does not have a saturated model. Does this mean that as one
introduces covariates the 2SLS estimator is most likely to change and
that change in the 2SLS estimate is not a comment on the validity of
the instrument?However in your empirical examples you seem to suggest
that invariance of 2SLS estimates to introduction of covariates is a
desirable thing.For example in the first paragraph on pg-152 of
Chapter 4, below Table 4.6.1, you state, "The invariance to covariates
seems desirable: since the same-sex instrument is essentially
independent of the covariates, control for covariates is unnecessary
to eliminate bias and should primarily affect precision." Essentially
my question is: should I start worrying if I see my 2SLS estimates
change as I introduce more covariates in my model? Thanks

<em>Wow, awesome question!  MHE is indeed a little fast and loose on this.
Let me take a stab at clarification.

In Section 4.6.2, we talk about how models with covariates can be
understood as generating a weighted average of cov-specific LATEs across
covariate cells.  True enough ... if the the instrument is
discrete and the first stage saturates (includes a full set of covariate
interactions).  So far so good.  Of course, in practice, you might not
want to saturate.  OK, so do Abadie kappa weighting and get the
best-in-class linear approx to the fully saturated model.
Too lazy to do Abadie?  Just do plain old 2SLS, and that will likely be
close enough to a more rigorously justified approx or weighted average.

Later, however, as Nikhil notes - below table 4.6.1 and on the following page -
we express relief (or satisfaction at least) when IV estimates come out
insensitive to covariates (using samesex) on the grounds that samesex is
independent of covs.  

Contradiction? 

Marginal LATE, that is, LATE with no covs, is also a weighted average
of covariate-specific LATE.  The weight here is the histogram of X </em><em><em>
(convince yourself of this using the law of iterated expectations).</em></em>
<em>Now, sticking the covariates in and saturating (where we start in 4.5.2)
produces a weighted average with different, more complex, weighting scheme
(instead of the histogram of X as for marginal LATE, it's the histogram
times the variance of conditional-on-covs first-stage, as in Thm 4.5.1).
In practice, tho, w/o too much heterogeneity, we don't expect weighting
this way or that to be a big deal.  On the other hand, even under constant
effects, covs may matter big time when there's substantial omitted variables.
bias. Seeing that randomly assigned instrument generates IV estimates
invariant to covs makes me happy - as always, its the OVB I worry about first!  

So to be specific - Nikhil asks if he should worry when IV ests are
sensitive to covs - I'd say, yes, worry a little.
Try to figure out if what you thought was a good instrument is in
fact highly confounded with covariates. If so, its maybe not such a
great experiment after all.   If not, then perhaps the senitivity you're
seeing is just a difference in weighting schemes at work

JA</em></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/10/covariate-contradiction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why are There So Many Dummies?</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/07/why-are-there-so-many-dummies/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/07/why-are-there-so-many-dummies/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 01:38:36 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=872</guid>
		<description><![CDATA[Lina from Essex writes: When talking about grouped data and 2SLS (section 4.1.3) you mention that expanding a continuous instrument is equivalent to have a set of Wald estimators that consistent estimates the causal effect of interest and in the Vietnam paper you mention that using the whole set of dummies as instruments is more [...]]]></description>
			<content:encoded><![CDATA[<pre>Lina from Essex writes:

When talking about grouped data and 2SLS (section 4.1.3) you mention
that expanding a continuous instrument is equivalent to have a set of
Wald estimators that consistent estimates the causal effect of
interest and in the Vietnam paper you mention that using the whole set
of dummies as instruments is more efficient.  I was wondering whether
using grouped data and instrumenting by the set of dummies for
different values of the continuous instrument differ from using the
continuous instrument (i.e. in your case using the continuous RSN). Is
there any gain of efficiency in the estimation? or is it just to
interpret the result under the set of Wald estimators? In other words.
If you have the continuous instrument why would you expand it? and
have over identification?. Thank you very much!!!, all the best.

<em>Good question Lina.  One answer is the conceptual appeal of putting
together Wald estimators.  Takes the mystery out of 2SLS!  But there
is a more formal argument for dummying out intervals of a continuous
instrument and then doing 2SLS with the dummies. As discussed in
Section 4.1.3, in a homoskedastic constant-effects model with a
continuous instrument, the efficient  method of moments estimator uses
the (unknown) E[D|Z] as an instrument, where D is the variable to be
instrumented and Z is the continuous instrument.  You
can think of a model with many dummies for intervals of Z as a
nonparametric approximation to this efficient but infeasible procedure.
Just using Z itself as an instrument would be a ** parametric ** approx
and therefore, perhaps, not as good. Of course, you could add polynomials
in Z for a similar nonparametric flavor, but the first stage would be ugly,
and as you conjecture, we would lose the conceptual appeal of combining
Wald estimators.

My 1990 draft lottery paper shows this reasoning in action.
See Newey (1990) for the theory.

JA</em></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/07/why-are-there-so-many-dummies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regression what?!</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/07/regression-what/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/07/regression-what/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 12:53:15 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=865</guid>
		<description><![CDATA[Matt from Western Kentucky U comments on Chapter 3. . . Question: You state: &#8220;Our view is that regression can be motivated as a particular sort of weighted matching estimator, and therefore the differences between regression and matching estimates are unlikely to be of major empirical importance&#8221; (Chapter 3 p. 70) I take this to [...]]]></description>
			<content:encoded><![CDATA[<p>Matt from Western Kentucky U comments on Chapter 3. . .</p>
<p>Question: You state:</p>
<p>&#8220;Our view is that regression can be motivated as a particular sort of<br />
weighted matching estimator, and therefore the differences between<br />
regression and matching estimates are unlikely to be of major<br />
empirical importance&#8221; (Chapter 3 p. 70)</p>
<p>I take this to mean that in a &#8216;mostly harmless way&#8217; regular OLS<br />
regression is in fact a method of matching, or is a matching<br />
estimator.  Is that an appropriate interpretation?  In &#8216;The Stata<br />
Journal and his blog, Andrew Gelman takes issue with my understanding,<br />
he states:<br />
&#8220;A casual reader of the book might be left with the unfortunate<br />
impression that matching is a competitor to regression rather than a<br />
tool for making regression more effective.&#8221;<br />
Any guidance?</p>
<p><em>Well Matt, Andrew Gelman&#8217;s intentions are undoubtedly good but I&#8217;m afraid he risks doing some harm here.  Suppose you&#8217;re interested in the effects of treatment, D, and you have a discrete control variable, X, for a selection-on-observables story.  Regress on D an a full set of dummies (i.e., saturated) model for X.  The resulting estimate of  the effect of D is <span style="text-decoration: underline">equal</span> to matching on X, and weighting across covariate cells by the variance of treatment conditional on X, as explained in Chapter 3.  While you might not always want to saturate, any other regression model for X gives the best linear approx to this version subject to whatever parameterization you&#8217;re using.<br />
</em></p>
<p><em>This means that i can&#8217;t imagine a situation where matching makes sense but regression does not (though some my say that I&#8217;m known for my lack of imagination when it comes to econometric methods) </em></p>
<p><em>JA</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/07/regression-what/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>High Fashion at the Spring Meeting of Young Economists</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/07/high-fashion-at-the-spring-meeting-of-young-economists/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/07/high-fashion-at-the-spring-meeting-of-young-economists/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 20:18:39 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=856</guid>
		<description><![CDATA[as seen at the University of Groningen . . .what a good-lookin crew! what are they spelling?  I wish I knew]]></description>
			<content:encoded><![CDATA[<div id="attachment_861" class="wp-caption alignleft" style="width: 310px"><a href="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01732.jpg" rel="lightbox[856]"><img class="size-medium wp-image-861" src="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01732-300x168.jpg" alt="" width="300" height="168" /></a><p class="wp-caption-text">could it be ... MHE</p></div>
<p>as seen at the University of Groningen . . .what a good-lookin crew!</p>
<div id="attachment_857" class="wp-caption alignleft" style="width: 310px"><a href="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01721.jpg" rel="lightbox[856]"><img class="size-medium wp-image-857" src="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01721-300x168.jpg" alt="" width="300" height="168" /></a><p class="wp-caption-text">excellent wardrobe choices</p></div>
<p>what are they spelling?  I wish I knew</p>
<div id="attachment_859" class="wp-caption alignleft" style="width: 310px"><a href="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01735.jpg" rel="lightbox[856]"><img class="size-medium wp-image-859" src="http://www.mostlyharmlesseconometrics.com/wordpress/wp-content/uploads/2011/07/DSC01735-300x168.jpg" alt="" width="300" height="168" /></a><p class="wp-caption-text">SMYE forever</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/07/high-fashion-at-the-spring-meeting-of-young-economists/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>good eye!</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/06/good-eye/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/06/good-eye/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 20:05:25 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Corrections]]></category>
		<category><![CDATA[Reader Comments]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=848</guid>
		<description><![CDATA[Hui Cao from China caught this one . . . and it&#8217;s in the &#8220;corrected printing&#8221; to boot! On 6/21/11 12:44 PM, 晖 曹 wrote: On page 75:  [p(Xi=x&#124;Di=1)(1-p(Xi=x&#124;Di=1)] should be [p(Di=1&#124;Xi=x)(1-P(Di=1&#124;Xi=x)} Yes indeed!]]></description>
			<content:encoded><![CDATA[<p>Hui Cao from China caught this one . . . and it&#8217;s in the &#8220;corrected printing&#8221; to boot!</p>
<p>On 6/21/11 12:44 PM, 晖 曹 wrote:</p>
<p>On page 75:  [p(Xi=x|Di=1)(1-p(Xi=x|Di=1)] should be [p(Di=1|Xi=x)(1-P(Di=1|Xi=x)}</p>
<p>Yes indeed!</p>
<blockquote>
<table style="height: 34px" border="0" cellspacing="0" cellpadding="0" width="21">
<tbody>
<tr>
<td valign="top">
<h2></h2>
</td>
</tr>
</tbody>
</table>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/06/good-eye/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixed effects, lagged dependent variables, or what?</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/06/fixed-effects-lagged-dependent-variables-or-what/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/06/fixed-effects-lagged-dependent-variables-or-what/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 22:18:41 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=841</guid>
		<description><![CDATA[Arzu Kibris asks Question: Suppose you have data on turnout at the county level for two periods, t and t-1, and suppose there has been a change in the electoral threshold in some states from t-1 to t. You want to analyze whether this change has effected turnout. Because counties are clustered within states, you [...]]]></description>
			<content:encoded><![CDATA[<pre>Arzu Kibris asks

Question: Suppose you have data on turnout at the county level for two
periods, t and t-1, and suppose there has been a change in the
electoral threshold in some states from t-1 to t. You want to analyze
whether this change has effected turnout. Because counties are
clustered within states, you think there might be some unobserved
state level effects which you control with state dummies. In models of
electoral behavior, to capture habit, lagged dependent variable is
also included as a control. So, in this example turnout at  t-1 is
included as an independent variable. Would such a model be considered
a fixed effects model with lagged dependent variable? It does not
include county-level fixed effects , nonetheless province level fixed
effects are still accounted for. I could not place such models in your
discussion. I would really appreciate if you could clarify.
</pre>
<p><em>Interesting question Arzu.  First thing I would do to clarify the problem </em></p>
<p><em>is focus on the source of variation.  If the law changes of interest are </em></p>
<p><em>at the state level, then that&#8217;s where the action is.  You want to control </em></p>
<p><em>for state effects since thats the source of OVB.  You can control for county </em></p>
<p><em>effects but counties are a red herring once you&#8217;ve got states under control. </em><em> </em></p>
<p><em>It sounds like you are trying to have both fixed effects and lagged dependent </em></p>
<p><em>variables.  I don&#8217;t find the idea of lagged dependent variables very appealing </em></p>
<p><em>in state-level DD. </em><em> Its hard to see why the lagged dependent variable is a </em></p>
<p><em>primary source of OVB, while there are almost surely time-invariant state effects</em></p>
<p><em>to worry about.</em></p>
<p><em>Good luck with your project!</em></p>
<p><em>JA</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/06/fixed-effects-lagged-dependent-variables-or-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AP F-stat . . . one more time!</title>
		<link>http://www.mostlyharmlesseconometrics.com/2011/05/ap-f-stat-one-more-time/</link>
		<comments>http://www.mostlyharmlesseconometrics.com/2011/05/ap-f-stat-one-more-time/#comments</comments>
		<pubDate>Thu, 19 May 2011 11:14:52 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.mostlyharmlesseconometrics.com/?p=836</guid>
		<description><![CDATA[One more correction here folks.  If you follow our prescriptions you won’t get the degrees of freedom for the F-stat right.  ivreg2 gets this right for you (thanks to Jenny Hunt for pointing out this discrepancy and to Mark Schaffer from the ivreg team for resolving it). But if you want to impress your friends [...]]]></description>
			<content:encoded><![CDATA[<p>One more correction here folks.  If you follow our prescriptions you won’t get the degrees of freedom for the F-stat right.  ivreg2 gets this right for you (thanks to Jenny Hunt for pointing out this discrepancy and to Mark Schaffer from the ivreg team for resolving it).</p>
<p>But if you want to impress your friends and do it longhand . . .</p>
<p>Suppose you have two endogenous variables x1 and x2, and you want the AP F-stat for x2.  There is also a third (exogenous) covariate x3 and you have q instruments, z1, z2, …, zq.  Using ivreg2 you would run</p>
<p>ivreg2 y (x1 x2 = z*) x3, ffirst</p>
<p>To do this manually in Stata, try:</p>
<p>local q = 3                      /* or whatever the number of your instruments is */</p>
<p>reg x1 z* x3</p>
<p>predict double x1hat</p>
<p>reg x2 x1hat x3</p>
<p>predict double x2res, resid</p>
<p>reg x2res z* x3</p>
<p>testparm z*</p>
<p>dis r(F)*(`q&#8217;/(`q&#8217;-1))</p>
<p>The testparm procedure in the second last line will produce an F-test with q numerator degrees of freedom.  But you lost one dof for partialling out x1 (you need one of your q instruments to identify x1), so your correct number of dof is q-1.  The last line in the code fixes the dofs, and should produce the same answer you get from ivreg2.  If you follow the procedure in MHE, p. 217-18 by first partialling out x3 from the instruments you wouldn’t have an x3 anymore in your last regression you run for the F-test.  In this case, you will also have to fix the denominator dofs for the F-test, to adjust for the dofs lost due to the exogenous covariates.</p>
<p>SP</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mostlyharmlesseconometrics.com/2011/05/ap-f-stat-one-more-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

