Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup). Install the package with:
devtools::install_github('zachmayer/kaggleNCAA')
Then simulate a tournament and print a bracket:
set.seed(1)
library('kaggleNCAA')
f <- system.file('kaggle_data/SampleSubmission.csv', package = "kaggleNCAA")
dat <- parseBracket(f)
sim <- simTourney(dat, 100, year=2016, progress=TRUE)
bracket <- extractBracket(sim)
printableBracket(bracket)
If simulation's not your thing (e.g. your predicted probabilities are transitive), you can also "walk" forward through the tournament, which is much faster:
bracket <- walkTourney(dat, year=2016)
printableBracket(bracket)
Note in this case that the probabilities associated with the team making it to a given round will be incorrect