bart_tournament_prediction: T-Rank Tournament Prediction

View source: R/bart_tournament_prediction.R

bart_tournament_predictionR Documentation

T-Rank Tournament Prediction

Description

Returns single-elimination tournament predictions using Barttorvik's model

Usage

bart_tournament_prediction(teams = NULL, date = NULL, sims = NULL, seed = NULL)

Arguments

teams

List of teams arranged in scheduled order

date

Date for tournament

sims

Number of simulations to play

seed

Seed to set for reproducible results

Details

Given a list of teams arranged in scheduled order, function returns tournament predictions for single-elimination tournaments. Teams must be supplied as a character vector and in bracket order. In other words, if team A plays team B and team C plays team D in round one, the function should be supplied ‘teams=c(’A', 'B', 'C', 'D')'.

Value

Returns a tibble with four columns:

team

character.

wins

integer.

finals

integer.

champ

integer.

Examples

try(bart_tournament_prediction(teams=c('Duke', 'North Carolina',
'Kansas', 'Villanova'), date='20220402', sims=10, seed=1))


toRvik documentation built on Nov. 10, 2022, 5:50 p.m.