Skip to content

add metric adjusted r2 #27

@behrica

Description

@behrica

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions