Git Product home page Git Product logo

Comments (2)

sergiocorreia avatar sergiocorreia commented on August 10, 2024

Hi Tatyana,

F-statistics also do not get reported, which is clearly problematic for IV

I'm not sure I follow. On the first stage of an IV people often report F-Stats, but of the instruments (not the entire set of covariates), and these should still be computable unless you have many instruments or almost no cluster units.

I get a warning because the number of clusters is smaller than the number of fixed effects

I just tried a toy example with Stata's default dataset, and it seems that the issue is not that the number of clusters is smaller than the number of FEs, but than it's smaller than the number of included regressors:

sysuse auto

* 14 FEs, one regressor, cluster of 2 = runs fine
ivreghdfe price (gear=length), a(turn) cluster(foreign)

* 14 FEs, two regressors, cluster of 2 = warning
ivreghdfe price weight (gear=length), a(turn) cluster(foreign)

It does say that the use of the "partial" option may help fix this problem

Indeed. But as you pointed out, you only partial included regressors and not FEs. For instance, in the previous example, we can partial out the -weight- variable to remove the warning:

* If we partial -weight- we don't get a warning anymore
ivreghdfe price weight (gear=length), a(turn) cluster(foreign) partial(weight)

The older version of reghdfe on ssc used to report F-stats for IV regressions in these cases, so perhaps it wouldn't be difficult to bring them back?

That's true. If you run reghdfe with the old option the program would actually run the SSC version:

reghdfe price weight (gear=length), a(turn) cluster(foreign) old

However, in the example above I still get a warning with the SSC version. Finally, I remember the new version improved some corner cases regarding when the F stat was shown (or not shown), so I would stick with the new version and just use partial().

Best,
Sergio

from ivreghdfe.

tatyanaderyugina avatar tatyanaderyugina commented on August 10, 2024

Thank you for the reply, Sergio! But literally all the non-instrument controls are absorbed, so there's nothing left to partial out. And the number of instruments, while large, is still smaller than the number of clusters.

from ivreghdfe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.