statsmodels.regression.linear_model.WLS.df_residΒΆ

property WLS.df_residΒΆ

The residual degree of freedom.

The dof is defined as the number of observations minus the rank of the regressor matrix.