statsmodels.regression.rolling.RollingRegressionResults.df_model

RollingRegressionResults.df_model

The model degree of freedom.

The dof is defined as the rank of the regressor matrix minus 1 if a constant is included.