Comments (2)
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.
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)
- issues with clustering - insufficient observations HOT 6
- Standard errors different for ivreghdfe and ivreg2 (even more so when using "small" option for ivreg2) HOT 3
- Incorrect coefficient with weights HOT 5
- Fixed effects by combination of variables and absorbed degrees of freedom HOT 1
- issues with clustering - transmorphic found where struct expected HOT 1
- Use ivreghdfe followed by predictnl
- ivreghdfe throws off ivreg2 instrument collinearity detection?
- vce(cluster var) accepted, but ignored.
- Cannot access r(table) HOT 3
- small correction for e(cmdline)
- "Warning: *variance matrix is nonsymmetric or highly singular" with reghdfe HOT 1
- Coefficients differ when using absorb with analytic weights HOT 3
- struct ms_vcvorthog undefined HOT 5
- Issue with ivreghdfe Command in Stata: "option requirements not allowed" HOT 11
- [BUG] Incorrect fixed effects with `cluster()` HOT 3
- -
- Question with the ivreghdfe command HOT 2
- last estimates not found r(301) when adding absorb() HOT 4
- 3499 fixed_effects() not found HOT 1
- r(198) option requirements not allowed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ivreghdfe.