All the files used in my NCAA Men's Basketball modeling, predictions, bracketology, and Ivy League simulations.
All the code that powers my NCAA Men's Basketball R Shiny Web Application application.
Model_3.0.R: Control panel for everything NCAA Hoops related that the application ultimately shows:
ncaa_hoop_scraper.R: An algorithim to scrape game schedule/result data from the NCAA website. This script is mostly copied (with slight modifications) from a scrape written by Prof. Jay Emerson and used in STAT 230: Introductory Data Analysis (Spring 2016).
3.0_Files/: A collection of files that are essentially the "inner workings" of everything done in this project. Every script in this directory contains functions. Those functions are executed in the master file, Model_3.0.R.
teams
(from best seed to worst seed), along with a vector of seeds
. Note that after games have been played, the seeds
vector must be entered in the order of highest possible seed for each given slot. For example, if we have quarterfinals where the matchups are 1 vs. 9, 2 vs. 7, 3 vs. 14, and 4 vs. 12, we'd set seeds
= (1, 2, 3, 4, 12, 14, 7, 9), as 5, 6, 7, 8 are the "chalk" seeds occupied by 12, 14, 7, and 9 in this hypothetical 15 team tournament. The user must also enter the number of single byes
, the number of double_byes
, the number of simulations to run nsims
, and a parameter for home court advantage, hca
. If the tournament is played at a neutral site, set hca = NA
. If the higher seed is always given home court advantage, set hca = "seed"
. If one team hosts the tournament (even if not the top seed), set hca = INSERT_TEAM_NAME
.