I enjoy the option metrics="all"
in modelsummary
package that gives excellent summary statistics of instrument variable models (e.g. ivreg
), namely the Wu-Hausman test.
data(mtcars)
library(ivreg)
iv_model <- ivreg(mpg ~ qsec + cyl + drat | disp | wt, data = mtcars)
summary(iv_model, diagnostics = TRUE)
library(modelsummary)
modelsummary(iv_model, metrics = "all")
How can I round
the metrics? Regression coefficients are rounded to 3 digits whereas Wu Hausman is 13 digits.