Personally Developed WAR Calculator (Need Visual Studio/Similar Compiler)

Collapse

Recommended Videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • allhailben7
    Rookie
    • Aug 2010
    • 335

    #1

    Personally Developed WAR Calculator (Need Visual Studio/Similar Compiler)

    In a text file, I have the code I personally used for a WAR calculator, simply copy and paste it into a new project (New Project>Win32 Project>Next>chooseCONSOLE APPLICATION,EMPTY PROJECT,NO SDL>(in tab)PROJECT>Add New Item>Paste) and under DEBUG, click "Start Without Debugging". NAME THE PROJECT AS 'insertname'.*C*, not .cpp

    You enter your stats and rated fielding/baserunning in as prompted, with spaces until each line is done, and you get a full readout of regular stats, along with weighted on-base average (wOBA), weighted runs against average (wRAA) and a player WAR estimate. There are checks down at the bottom that I used in case anything goes terribly wrong, too.

    Baserunning and fielding runs are calculated using an array with historical numbers rated from poor to great. If anything seems off, this is where things would go wrong. The offensive numbers are usually very accurate. For example: using Bryce Harper's stats and league stats from about a month ago (when I wrote the original C-program), I personally come up with a wRAA figure of 40.7 or ~41 compared to Baseball Reference's current figure under the 'Player Value' section--42. If you can estimate your defensive performance well, you can come up with a good estimate of WAR.

    I hope those of you that can use this will have fun trying to put your RTTS or clutch franchise players into context. If you feel like, you can even post some of your results here.

    [ATTACH]Here you go[/ATTACH].
    Attached Files
  • KBLover
    Hall Of Fame
    • Aug 2009
    • 12172

    #2
    Re: Personally Developed WAR Calculator (Need Visual Studio/Similar Compiler)

    Did a few runs on my last season (2017, so I picked 2015 stats).

    1B Chris Davis: I had 6.1 WAR, Calc came up 6.6

    2B Chris Taylor: I had 2.6 WAR, Calc came up 3.2


    I think that's pretty sweet, especially considering I'm using a modified range factor (basically range factor minus errors) and don't have any way to judge base running aside from SB. So it could be that I'm undershooting things.

    Not to mention I'm using the game's sim stats from MLB14 (because I'm too lazy to see what things are in 2017 in my franchise, but I might have to do it for 2018...)

    Plus a half-a-WAR is not exactly a big difference.
    "Some people call it butterflies, but to him, it probably feels like pterodactyls in his stomach." --Plesac in MLB18

    Comment

    • allhailben7
      Rookie
      • Aug 2010
      • 335

      #3
      Re: Personally Developed WAR Calculator (Need Visual Studio/Similar Compiler)

      It seems like most of the error comes from the fieldR part and small sample sizes in-season, because I estimate how many league games have been played at that point and some of the 'rate yourself' parts don't scale as well. The real-life calculations for this season usually fall in between b-ref and Fan Graphic at the moment if your fielding rating is pretty close.

      Comment

      Working...