From d058f524b7dd36bc5d4d382d03762a6cad2207a4 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Thu, 2 Jun 2022 18:45:32 +0200 Subject: [PATCH] Adjust definition of null model when there is no intercept (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Technically this is breaking, but the current definition gives negative R² for models without the intercept. --- Project.toml | 2 +- src/statisticalmodel.jl | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index cb9e608..555f422 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StatsAPI" uuid = "82ae8749-77ed-4fe6-ae5f-f523153014b0" authors = ["Milan Bouchet-Valat