IV regression with modelsummary

Hello everyone,

I would like to display the results of my Instrumental Variable regression using the package ivreg and modelsummary. However, modelsummary does not display one of the diagnostic tests I need (the Weak Instruments one). This test is displayed when using the usual summary() formula but not with modelsummary(). Is there a way to add it manually or via adding an argument? See the code I used below as well as pictures of the output:

ivmodel <- ivreg(testscr ~ avginc + pctel | comp_stu + avgsalary + pctel, data=MASS_small)

summary(ivmodel, vcov = vcovHC(ivmodel, type = "HC1"), df = 'Inf', diagnostics = TRUE)

#alternative using model summary

             vcov = "HC1",
             diagnostics = TRUE,
             conf_level = 0.95,
             fmt = '%.4f',
) %>%

Output of summary() function:

Output of modelsummary():

Thank for the help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.