I can't extract the durbin-watson as a value on it's own from the statsmodel.api, or find anywhere any documentation to help (i found alot of documentation on it's parent library, but i couldn't decode any of it).
The value is being calculated and can be seen by doing the following model summary (i've been following the guidance here: https://www.statology.org/durbin-watson-test-python/)
from statsmodels.formula.api import ols
#fit multiple linear regression model
model = ols('rating ~ points + assists + rebounds', data=df).fit()
#view model summary
print(model.summary())
however i just can't pull out that one figure. Any ideas?
Also - it looks like DW works on a confidence interval. Can you 'set' the model to work on say 95% confidence? I essentially want to perform the test multiple times and if the DW figure is in the 95% CI, return a yes or no to continue the program.
Thanks