Properly compiled for modern windows 64 bit. Not a pull request because I know I am the only windows user. And I am about to stop.
Merge branch 'master' of https://github.com/vistalab/vistasoft
External function for calculating R2.  KK has a function called calccod.  This one is apparently similar.
Not sure the function is right.  Will check more carefully.