DeclareDesign / estimatr

estimatr: Fast Estimators for Design-Based Inference
https://declaredesign.org/r/estimatr
Other
131 stars 20 forks source link

`glance()` does not work on `iv_robust()` with multiple endogenous variables #389

Open lukesonnet opened 2 years ago

lukesonnet commented 2 years ago
library(estimatr)
oo <- iv_robust(mpg ~ hp + wt | am + cyl, mtcars, diagnostics = TRUE)
glance(oo)
# Error in data.frame(statistic.weakinst = x[["diagnostic_first_stage_fstatistic"]]["value"],  : 
#  row names contain missing values

The multiple names on the resulting "diagnostic_first_stage_fstatistic" are probably hard to handle.