This set of programs simulates a baseball game to analyze the strategies in various situations throughout a game.
Original code was in MATLAB and I have since translated it to R for additional flexibility.
- Download the .R programs to a single directory.
- Open up the "baseball dp.R" program and execute.
Link to original code: http://www.footballcommentary.com/bbmodel.htm