From f407c5a44f77e49f3e0c513afcdee65e3bc0f6c2 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sun, 16 Oct 2022 02:30:24 +1100 Subject: [PATCH] Move dof_resid below dof_model in regression output dof_model is the numerator in the F test so this makes more sense --- yli/regress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yli/regress.py b/yli/regress.py index 39b6545..6bf0f61 100644 --- a/yli/regress.py +++ b/yli/regress.py @@ -176,9 +176,9 @@ class RegressionResult: # Right column right_col = [] + right_col.append(('Df. Model:', format(self.dof_model, '.0f'))) if self.dof_resid: right_col.append(('Df. Residuals:', format(self.dof_resid, '.0f'))) - right_col.append(('Df. Model:', format(self.dof_model, '.0f'))) if self.rsquared: right_col.append(('R2:' if html else 'R²:', format(self.rsquared, '.2f'))) else: