'How can I select the p-value of the weak instruments test in r?

When I calculate a linear model with ivreg then I get the p-value for the weak instruments test with summary(iv_model1)

Diagnostic tests:
                 df1 df2 statistic  p-value    
Weak instruments   1 367     53.56 2.23e-12 ***

How can I get the p-value alone? Like I can get the Intercept of the model with the command iv_model1$coefficients[1] I went through str(iv_model1) but I couldn't find it.

rlm


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source