Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explained Variation Metric #33

Merged
merged 5 commits into from
Oct 18, 2018
Merged

Conversation

adviksh
Copy link
Contributor

@adviksh adviksh commented Oct 16, 2018

Thank you for developing and maintaining this project! I've been using it in some of my work, and thought I'd contribute a simple calculation of explained variance (a.k.a coefficient of determination) I've wrote on top of it. I've taken a first pass at writing, documenting, and testing the code. Happy to make any changes, or to close this PR if it's not worth the time.

This PR also bumps up the Roxygen version from 6.0.1 to 6.1.0.

@codecov-io
Copy link

Codecov Report

Merging #33 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #33      +/-   ##
=======================================
+ Coverage   97.97%   98%   +0.02%     
=======================================
  Files           5     5              
  Lines          99   100       +1     
=======================================
+ Hits           97    98       +1     
  Misses          2     2
Impacted Files Coverage Δ
R/regression.R 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94b7dba...df6e465. Read the comment docs.

@@ -337,3 +337,24 @@ rrse <- function(actual, predicted) {
rae <- function(actual, predicted) {
return(sum(ae(predicted, actual)) / sum(ae(actual, mean(actual))))
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for contributing to the package. I really appreciate it! Also, thanks a lot for adding tests and following the design patterns set by the package. That's awesome.

@mfrasco mfrasco merged commit 8a00f2d into mfrasco:master Oct 18, 2018
@adviksh adviksh deleted the explained-variation branch October 18, 2018 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants