Package mrchmadness. April 9, 2017

Similar documents
Package pinnacle.data

Package STI. August 19, Index 7. Compute the Standardized Temperature Index

Package jackstraw. August 7, 2018

Package rdpla. August 13, 2017

March Madness A Math Primer

Package macleish. January 3, 2018

Package gvc. R topics documented: August 29, Version Title Global Value Chains Tools

BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG

Package BAwiR. January 25, 2018

Package physiology. July 16, 2018

PREDICTING THE NCAA BASKETBALL TOURNAMENT WITH MACHINE LEARNING. The Ringer/Getty Images

Package mregions. October 17, 2017

Ranking teams in partially-disjoint tournaments

March Madness Basketball Tournament

NCSS Statistical Software

Modeling the NCAA Tournament Through Bayesian Logistic Regression

March Madness Basketball Tournament

Sample Final Exam MAT 128/SOC 251, Spring 2018

Package BAwiR. February 17, 2019

Package simmr. August 29, 2016

Working with Marker Maps Tutorial

Massey Method. Introduction. The Process

Our Shining Moment: Hierarchical Clustering to Determine NCAA Tournament Seeding

Package nhlscrapr. R topics documented: March 8, Type Package

Name: Date: Hour: MARCH MADNESS PROBABILITY PROJECT

Using Spatio-Temporal Data To Create A Shot Probability Model

DATA SCIENCE SUMMER UNI VIENNA

Bryan Clair and David Letscher

Predictive Model for the NCAA Men's Basketball Tournament. An Honors Thesis (HONR 499) Thesis Advisor. Ball State University.

Package ExactCIdiff. February 19, 2015

FIG: 27.1 Tool String

The next criteria will apply to partial tournaments. Consider the following example:

Improving Bracket Prediction for Single-Elimination Basketball Tournaments via Data Analytics

Predictors for Winning in Men s Professional Tennis

Simulating Major League Baseball Games

Journal of Quantitative Analysis in Sports Manuscript 1039

Lab 2: Probability. Hot Hands. Template for lab report. Saving your code

Lab 8 - Continuation of Simulation Let us investigate one of the problems from last week regarding a possible discrimination suit.

Navigate to the golf data folder and make it your working directory. Load the data by typing

Package multisom. May 23, 2017

RUNNING A SUCCESSFUL ENTRY-LEVEL TOURNAMENT FOR YEAR-OLDS

Predicting the NCAA Men s Basketball Tournament with Machine Learning

download.file(" destfile = "kobe.rdata")

Five Great Activities Using Spinners. 1. In the circle, which cell will you most likely spin the most times? Try it.

Using March Madness in the first Linear Algebra course. Steve Hilbert Ithaca College

Background Information. Project Instructions. Problem Statement. EXAM REVIEW PROJECT Microsoft Excel Review Baseball Hall of Fame Problem

Trial # # of F.T. Made:

Package compete. R topics documented: August 29, Title Analyzing Social Hierarchies Type Package Version 0.1

The Effect of Newspaper Entry and Exit on Electoral Politics Matthew Gentzkow, Jesse M. Shapiro, and Michael Sinkinson Web Appendix

Competition & Ranking Manual

PSY201: Chapter 5: The Normal Curve and Standard Scores

Smoothing the histogram: The Normal Curve (Chapter 8)

Ncaa Tournament Bracket 2018 Printable Of The March

2005 NFL Regular Season Pools. Bryan Clair

LEE COUNTY WOMEN S TENNIS LEAGUE

INSTRUCTION FOR FILLING OUT THE JUDGES SPREADSHEET

Internet Technology Fundamentals. To use a passing score at the percentiles listed below:

Statistical Theory, Conditional Probability Vaibhav Walvekar

A Traffic Operations Method for Assessing Automobile and Bicycle Shared Roadways

NCAA March Madness Statistics 2018

Upon placing his bet, the player confirms that he does not have any knowledge of the result of the respective sports event.

Staking plans in sports betting under unknown true probabilities of the event

STATIONARY SPRINKLER IRRIGATION SYSTEM

Predicting Results of March Madness Using the Probability Self-Consistent Method

THE STATCREW SYSTEM For Basketball - What's New Page 1

Tournament Operation Procedures

Example 1: One Way ANOVA in MINITAB

Using Actual Betting Percentages to Analyze Sportsbook Behavior: The Canadian and Arena Football Leagues

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Wenbing Zhao. Department of Electrical and Computer Engineering

Predicting the Total Number of Points Scored in NFL Games

Fundamentals of Machine Learning for Predictive Data Analytics

Oregon School Activities Association SW Parkway Avenue, Suite 1 Wilsonville, OR fax:

Outline. Terminology. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Steps in Capacity Planning and Management

Tournaments. Dale Zimmerman University of Iowa. February 3, 2017

Life Support Team Mission Day Instructions

Besides the reported poor performance of the candidates there were a number of mistakes observed on the assessment tool itself outlined as follows:

ORC Software Module for Performance Curve Calculation (PCS) Specifications

Predicting Season-Long Baseball Statistics. By: Brandon Liu and Bryan McLellan

8th Grade. Data.

Using Markov Chains to Analyze Volleyball Matches

Taking Your Class for a Walk, Randomly

Black Sea Bass Encounter

USA Wrestling A GUIDE FOR PAIRING USING TRACKWRESTLING COMPUTER OPERATIONS. Line Bracketing Pairing 2017 Edition

Student Population Projections By Residence. School Year 2016/2017 Report Projections 2017/ /27. Prepared by:

USA Jump Rope Tournament Software User Guide 2014 Edition

RUNNING A MEET WITH HY-TEK MEET MANAGER

1. OVERVIEW OF METHOD

Global Physical Activity Questionnaire (GPAQ)

Design of Experiments Example: A Two-Way Split-Plot Experiment

Credibility theory features of actuar

dplyr & Functions stat 480 Heike Hofmann

U S F O S B u o y a n c y And Hydrodynamic M a s s

ORF 201 Computer Methods in Problem Solving. Final Project: Dynamic Programming Optimal Sailing Strategies

A Computationally Intensive Ranking System for Paired Comparison Data

Handicap Differential = (Adjusted Gross Score - USGA Course Rating) x 113 / USGA Slope Rating

Roland C. Deutsch. April 14, 2010

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering. Mini-project 3 Tennis ball launcher

Horse Farm Management s Report Writer. User Guide Version 1.1.xx

Tie Breaking Procedure

Kelsey Schroeder and Roberto Argüello June 3, 2016 MCS 100 Final Project Paper Predicting the Winner of The Masters Abstract This paper presents a

Transcription:

Package mrchmadness April 9, 2017 Title Numerical Tools for Filling Out an NCAA Basketball Tournament Bracket Version 1.0.0 URL https://github.com/elishayer/mrchmadness Imports dplyr, glmnet, Matrix, rvest, shiny, xml2 Scrape season results, estimate win probabilities, and find a competitive bracket for your office pool. Additional utilities include: scraping population picks; simulating tournament results; and testing your bracket in simulation. Depends R (>= 3.3.0) License GPL-2 LazyData true RoxygenNote 6.0.1 Suggests knitr, rmarkdown VignetteBuilder knitr NeedsCompilation no Author Eli Shayer [aut, cre], Scott Powers [aut] Maintainer Eli Shayer <eshayer@stanford.edu> Repository CRAN Date/Publication 2017-04-09 13:56:07 UTC R topics documented: bracket.men.2017...................................... 2 bracket.women.2017.................................... 3 bradley.terry......................................... 3 draw.bracket......................................... 4 find.bracket......................................... 4 fold............................................. 6 1

2 bracket.men.2017 games.men.2016...................................... 6 games.men.2017...................................... 7 games.women.2017..................................... 7 mrchmadness........................................ 7 pred.538.men.2017..................................... 8 pred.538.women.2017................................... 8 pred.pop.men.2016..................................... 9 pred.pop.men.2017..................................... 9 pred.pop.women.2016................................... 9 pred.pop.women.2017................................... 10 run.app........................................... 10 score.bracket........................................ 11 scrape.game.results..................................... 12 scrape.population.distribution................................ 12 scrape.team.game.results.................................. 13 scrape.teams......................................... 13 sim.bracket......................................... 14 sim.bracket.matrix..................................... 15 sim.bracket.source..................................... 16 teams.men.......................................... 17 teams.women........................................ 17 test.bracket......................................... 18 unfold............................................ 19 Index 20 bracket.men.2017 2017 Men s March Madness bracket This dataset contains the ESPN team ids of the 64 teams in the 2017 March Madness men s bracket. The teams are ordered by overall seed, such that the first four team ids correspond to the four #1 seeds. character vector of length 64

bracket.women.2017 3 bracket.women.2017 2017 Women s March Madness bracket This dataset contains the ESPN team ids of the 64 teams in the 2017 March Madness women s bracket. The teams are ordered by overall seed, such that the first four team ids correspond to the four #1 seeds. character vector of length 64 bradley.terry Fit a Bradley-Terry model on game score data Fit a Bradley-Terry model on game score data bradley.terry(games) games data.frame with the following columns: game.id, home.id, away.id, home.score, away.score, neutral, ot (matched by output of scrape.game.results) matrix of win probabilities, with rows and columns labeled by team. Each entry gives the probability of the team corresponding to that row beating the team corresponding to that column. sspowers Examples prob = bradley.terry(games = games.men.2017)

4 find.bracket draw.bracket Plot bracket to device Plot bracket to device draw.bracket(bracket.empty, bracket.filled = NULL, league = c("men", "women")) bracket.empty a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding bracket.filled an optional length-63 character vector encoding tournament results (matching output from simulate.bracket) league sspowers which league: "men" (default) or "women". Used for converting team IDs into team names Examples prob.matrix = bradley.terry(games = games.men.2017) outcome = sim.bracket(bracket.empty = bracket.men.2017, prob.matrix = prob.matrix) draw.bracket(bracket.empty = bracket.men.2017, bracket.filled = outcome) find.bracket Fill out a bracket based on some criteria Fill out a bracket based on some criteria find.bracket(bracket.empty, prob.matrix = NULL, prob.source = c("pop", "Pom", "538"), pool.source = c("pop", "Pom", "538"), league = c("men", "women"), year = 2017, num.candidates = 100, num.sims = 1000, criterion = c("percentile", "score", "win"), pool.size = 30, bonus.round = c(1, 2, 4, 8, 16, 32), bonus.seed = rep(0, 16), bonus.combine = c("add", "multiply"))

find.bracket 5 bracket.empty prob.matrix prob.source pool.source league year a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding a matrix of probabilities, with rows and columns corresponding to teams, matching the output of bradley.terry(). This probabilities are used to simulate candidate brackets and outcomes on which to evaluate the candidates. If NULL, prob.source is used. source from which to use round probabilities to simulate candidate brackets and outcomes "pop": ESPN s population of picks (default), "Pom": Ken Pomeroy s predictions (kenpom.com), or "538": predictions form fivethirtyeight.com. Ignored if prob.matrix is specified. source from which to use round probabilities to simulate entries of opponents in pool. Same options as prob.source. which league: "men" (default) or "women", for pool.source. year of tournament, used for prob.source and pool.source num.candidates number of random brackets to try, taking the best one (default is 100) num.sims criterion number of simulations over which to evaluate the candidate brackets (default is 1000) how to choose among candidate brackets: "percentile" (default, maximize expected percentile within pool), "score" (maximize expected number of points) or "win" (maximize probabilty of winning pool). pool.size number of brackets in your pool (excluding yours), matters only if criterion == "win" (default is 30) bonus.round bonus.seed bonus.combine a length-6 vector giving the number of points awarded in your pool s scoring rules for correct picks in each round (default is 2^round) a length-16 vector giving the bonus awarded for correctly picking winner based on winner s seed (default is zero) how to combine the round bonus with the seed bonus to get the number of points awarded for each correct pick: "add" (default) or multiply the length-63 character vector describing the filled bracket which performs best according to criterion among all num.candidates brackets tried, across num.sims simulations of a pool of pool.size with scoring rules specified by bonus.round, bonus.seed and bonus.combine sspowers Examples find.bracket(bracket.empty = bracket.men.2017, prob.source = "538", pool.source = "pop", league = "men", year = 2017)

6 games.men.2016 fold Fold a vector onto itself Fold a vector onto itself fold(x, block.size = 1) x block.size a vector the size of groups in which to block the data a new vector in the following order: first block, last block, second block, second-to-last block,... sspowers games.men.2016 2016 NCAA Men s Basketball Game-by-Game Results This dataset contains the game results of the college men s basketball 2015-2016 season, identifying the game, the home and away teams, (using the ESPN ID system), the home and away scores, whether the game was played at a neutral arena, and whether the game went into overtime. Teams that are not in Division I are uniformly identified by the string NA as their id. data frame with 5924 rows and 7 variables ESPN

games.men.2017 7 games.men.2017 2017 NCAA Men s Basketball Game-by-Game Results This dataset contains the game results of the college men s basketball 2016-2017 season, identifying the game, the home and away teams, (using the ESPN ID system), the home and away scores, whether the game was played at a neutral arena, and whether the game went into overtime. Teams that are not in Division I are uniformly identified by the string NA as their id. data frame with 5871 rows and 7 variables ESPN games.women.2017 2017 NCAA Women s Basketball Game-by-Game Results This dataset contains the game results of the college women s basketball 2016-2017 season, identifying the game, the home and away teams, (using the ESPN ID system), the home and away scores, whether the game was played at a neutral arena, and whether the game went into overtime. Teams that are not in Division I are uniformly identified by the string NA as their id. data frame with 5575 rows and 7 variables ESPN mrchmadness March Madness Bracket Package mrchmadness provides utilities to gather NCAA Men s Basketball data, predict the win probability of matchups, and produce a bracket optimized to a specified criterion

8 pred.538.women.2017 pred.538.men.2017 2017 March Madness 538 Win Probability Predictions This dataset contains the win probabilities forecasted by the website FiveThirtyEight immediately after the First Four and before any other games had been played in the March Madness tournament of the 2016-2017 season. The columns are the names of the teams, and FiveThirtyEight s projected probability of reaching each round of the tournament. data frame with 64 rows and 7 variables https://projects.fivethirtyeight.com/2017-march-madness-predictions/ pred.538.women.2017 2017 Women s March Madness 538 Win Probability Predictions This dataset contains the win probabilities forecasted by the website FiveThirtyEight for the Women s March Madness tournament of the 2016-2017 season. The columns are the names of the teams, and FiveThirtyEight s projected probability of reaching each round. data frame with 64 rows and 7 variables https://projects.fivethirtyeight.com/2017-march-madness-predictions/

pred.pop.men.2016 9 pred.pop.men.2016 2016 March Madness Men s Population Pick Distribution This dataset contains the percent of brackets submitted to ESPN that include each of the 64 teams in Men s March Madness 2016 reaching and winning in each successive round of the tournament. data frame with 64 rows and 7 variables http://games.espn.com/tournament-challenge-bracket/2016/en/whopickedwhom pred.pop.men.2017 2017 March Madness Population Pick Distribution This dataset contains the percent of brackets submitted to ESPN that include each of the 64 teams in March Madness 2017 reaching and winning in each successive round of the tournament. data frame with 64 rows and 7 variables http://games.espn.com/tournament-challenge-bracket/2017/en/whopickedwhom pred.pop.women.2016 2016 March Madness Women s Population Pick Distribution This dataset contains the percent of brackets submitted to ESPN that include each of the 64 teams in Women s March Madness 2016 reaching and winning in each successive round of the tournament. data frame with 64 rows and 7 variables http://games.espn.com/tournament-challenge-bracket-women/2016/en/whopickedwhom

10 run.app pred.pop.women.2017 2017 March Madness Women s Population Pick Distribution This dataset contains the percent of brackets submitted to ESPN that include each of the 64 teams in Women s March Madness 2017 reaching and winning in each successive round of the tournament. data frame with 64 rows and 7 variables http://games.espn.com/tournament-challenge-bracket-women/2017/en/whopickedwhom run.app Run the Shiny app allowing for interaction with the bracket production given user-entered criteria Run the Shiny app allowing for interaction with the bracket production given user-entered criteria run.app() eshayer

score.bracket 11 score.bracket Compute score for bracket given actual result Compute score for bracket given actual result score.bracket(bracket.empty, bracket.picks, bracket.outcome, bonus.round = c(1, 2, 4, 8, 16, 32), bonus.seed = rep(0, 16), bonus.combine = c("add", "multiply")) bracket.empty bracket.picks a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding an length-63 character vector encoding the picks (this is the bracket to be evaluated) bracket.outcome a 63-row matrix encoding the outcome of multiple simulations of the tournament. bracket.picks will be scored against each outcome bonus.round bonus.seed bonus.combine a length-6 vector giving the number of points awarded in your pool s scoring rules for correct picks in each round (default is 2^round) a length-16 vector giving the bonus awarded for correctly picking winner based on winner s seed (default is zero) how to combine the round bonus with the seed bonus to get the number of points awarded for each correct pick: "add" (default) or multiply a vector giving the score for bracket.picks for each outcome in the matrix bracket.oucome sspowers

12 scrape.population.distribution scrape.game.results Scrape the game-by-game results of the NCAA MBB seaon Scrape the game-by-game results of the NCAA MBB seaon scrape.game.results(year, sex = c("mens", "womens")) year sex a numeric value of the year, between 2002 and 2017 inclusive either mens or womens data.frame with game-by-game results eshayer scrape.population.distribution Scrape the average rate of teams being picked to win across all ESPN brackets Scrape the average rate of teams being picked to win across all ESPN brackets scrape.population.distribution(year, sex = c("mens", "womens")) year the numeric year to scrape, either 2016 or 2017 sex either mens or womens data.frame giving percentage of population picking each team in each round

scrape.team.game.results 13 eshayer Examples populationdistribution = scrape.population.distribution(2017) scrape.team.game.results Scrape game results for a single team-year combination Scrape game results for a single team-year combination scrape.team.game.results(year, team.id, sex) year team.id sex a character value representing a year an ESPN team id either mens or womens data.frame of game data for the team-year eshayer scrape.teams Scrape the team names and ids from the ESPN NCAA MBB index Scrape the team names and ids from the ESPN NCAA MBB index scrape.teams(sex)

14 sim.bracket sex either mens or womens data.frame of team names and ids eshayer sim.bracket Simulate the full bracket starting with an empty bracket Simulate the full bracket starting with an empty bracket sim.bracket(bracket.empty, prob.matrix = NULL, prob.source = c("pop", "Pom", "538"), league = c("men", "women"), year = 2017, num.reps = 1) bracket.empty prob.matrix prob.source league year a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding a matrix of probabilities, with rows and columns corresponding to teams, matching the output of bradley.terry(). If NULL, prob.source is used. source from which to use round probabilities for simulation "pop": ESPN s population of picks (default), "Pom": Ken Pomeroy s predictions (kenpom.com), or "538": predictions form fivethirtyeight.com. Ignored if prob.matrix is specified. which league: "men" (default) or "women", for prob.source. Ignored if prob.matrix is specified. year of tournament, used for prob.source. Ignored if prob.matrix is specified. num.reps number of simulations to perform (default is 1) a 63-by-num.reps matrix storing the simulation outcome, each column encoding the outcome for a single simulation in the following order: seeds 1 through 32 after round 1, seeds 1 through 16 after round 2, seeds 1 through 8 after round 3, seeds 1 through 4 after round 4, seeds 1 and 2 after round 5, and finally seed 1 after round 6 (the champion)

sim.bracket.matrix 15 sspowers Examples sim.bracket(bracket.empty = bracket.men.2017, prob.source = "538", league = "men", year = 2017) sim.bracket.matrix Simulate the full bracket starting with an empty bracket Simulate the full bracket starting with an empty bracket sim.bracket.matrix(prob.matrix, league, num.reps, outcome, round, teams.remaining, untangling.indices) prob.matrix league num.reps outcome a matrix of probabilities, with rows and columns corresponding to teams, matching the output of bradley.terry() which league: "men" (default) or "women" number of simulations to perform passed in from sim.bracket() round passed in from sim.bracket() teams.remaining passed in from sim.bracket() untangling.indices passed in from sim.bracket() a 63-by-num.reps matrix storing the simulation outcome, each column encoding the outcome for a single simulation in the following order: seeds 1 through 32 after round 1, seeds 1 through 16 after round 2, seeds 1 through 8 after round 3, seeds 1 through 4 after round 4, seeds 1 and 2 after round 5, and finally seed 1 after round 6 (the champion) sspowers

16 sim.bracket.source sim.bracket.source Simulate the full bracket starting with an empty bracket Simulate the full bracket starting with an empty bracket sim.bracket.source(prob.source, league, year, num.reps, outcome, round, teams.remaining, untangling.indices) prob.source league year num.reps outcome round source from which to use round probabilities for simulation "pop": ESPN s population of picks, "Pom": Ken Pomeroy s predictions (kenpom.com), or "538": predictions form fivethirtyeight.com. which league: "men" (default) or "women", for prob.source. year of tournament, used for prob.source. number of simulations to perform passed in from sim.bracket() passed in from sim.bracket() teams.remaining passed in from sim.bracket() untangling.indices passed in from sim.bracket() a 63-by-num.reps matrix storing the simulation outcome, each column encoding the outcome for a single simulation in the following order: seeds 1 through 32 after round 1, seeds 1 through 16 after round 2, seeds 1 through 8 after round 3, seeds 1 through 4 after round 4, seeds 1 and 2 after round 5, and finally seed 1 after round 6 (the champion) sspowers

teams.men 17 teams.men NCAA Men s Basketball Teams This dataset the names of each team in NCAA Men s Basketball from ESPN, their ESPN team id, their name as it appears on the Who Picked Whom, and the FiveThirtyEight name. The last two name fields are only available for those teams who played in March Madness in 2016 or 2017, and are otherwise NA. data frame with 351 rows and 4 variables http://www.espn.com/mens-college-basketball/teams teams.women NCAA Women s Basketball Teams This dataset the names of each team in NCAA Women s Basketball from ESPN, their ESPN team id, their name as it appears on the Who Picked Whom, and their FiveThirtyEight name. data frame with 349 rows and 4 variables http://www.espn.com/womens-college-basketball/teams

18 test.bracket test.bracket Test a bracket Test a bracket test.bracket(bracket.empty, bracket.picks, prob.matrix = NULL, prob.source = c("pop", "Pom", "538"), pool.source = c("pop", "Pom", "538"), league = c("men", "women"), year = 2017, pool.size = 30, num.sims = 1000, bonus.round = c(1, 2, 4, 8, 16, 32), bonus.seed = rep(0, 16), bonus.combine = c("add", "multiply")) bracket.empty bracket.picks prob.matrix prob.source pool.source league year a length-64 character vector giving the field of 64 teams in the tournament, in order of initial overall seeding an length-63 character vector encoding your picks (this is the bracket to be evaluated) a matrix of probabilities, with rows and columns corresponding to teams, matching the output of bradley.terry(). This probabilities are used to simulate outcomes on which to evaluate bracket.picks. If NULL, prob.source is used. source from which to use round probabilities to simulate outcomes "pop": ESPN s population of picks (default), "Pom": Ken Pomeroy s predictions (kenpom.com), or "538": predictions form fivethirtyeight.com. Ignored if prob.matrix is specified. source from which to use round probabilities to simulate entries of opponents in pool. Same options as prob.source. which league: "men" (default) or "women", for pool.source. year of tournament, used for prob.source. Ignored if prob.matrix is specified. pool.size number of brackets in your pool (excluding yours), matters only if criterion == "win" (default is 30) num.sims bonus.round bonus.seed bonus.combine number of simulations over which to evaluate the candidate brackets (default is 1000) a length-6 vector giving the number of points awarded in your pool s scoring rules for correct picks in each round (default is 2^round) a length-16 vector giving the bonus awarded for correctly picking winner based on winner s seed (default is zero) how to combine the round bonus with the seed bonus to get the number of points awarded for each correct pick: "add" (default) or multiply

unfold 19 sspowers Examples prob.matrix = bradley.terry(games = games.men.2017) my.bracket = find.bracket(bracket.empty = bracket.men.2017, prob.matrix = prob.matrix, pool.source = "pop", league = "men", year = 2017) result = test.bracket(bracket.empty = bracket.men.2017, bracket.picks = my.bracket, prob.matrix = prob.matrix, pool.source = "pop", league = "men", year = 2017) unfold Unfold a vector (the inverse of the fold function) Unfold a vector (the inverse of the fold function) unfold(x, block.size = 1) x block.size a vector the size of groups in which to block the data a vector in the following order: block 1, block 3,..., block n-1, block n, block n-2,..., block 2. sspowers

Index bracket.men.2017, 2 bracket.women.2017, 3 bradley.terry, 3 draw.bracket, 4 find.bracket, 4 fold, 6 games.men.2016, 6 games.men.2017, 7 games.women.2017, 7 mrchmadness, 7 mrchmadness-package (mrchmadness), 7 pred.538.men.2017, 8 pred.538.women.2017, 8 pred.pop.men.2016, 9 pred.pop.men.2017, 9 pred.pop.women.2016, 9 pred.pop.women.2017, 10 run.app, 10 score.bracket, 11 scrape.game.results, 12 scrape.population.distribution, 12 scrape.team.game.results, 13 scrape.teams, 13 sim.bracket, 14 sim.bracket.matrix, 15 sim.bracket.source, 16 teams.men, 17 teams.women, 17 test.bracket, 18 unfold, 19 20