-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
I came with this implementation;
(defn adj-r2 [lhs rhs p]
(let [r2 (stats/r2 lhs rhs)
n (count lhs)]
(- 1
(* (- 1 r2)
(/ (dec n) (- n p 1))))))
from here:
https://en.wikipedia.org/wiki/Coefficient_of_determination#Adjusted_R2