extract_score: Find the predicted Bradley-Terry score of a player

Description Usage Arguments Value

View source: R/bradley_terry.R

Description

Finds the predicted score of a player following the use of the EM algorithm. If no such score exists for a player -1 is returned as the score for that player.

Usage

1
extract_score(player,lambda_hat,players)

Arguments

player

id of the player for whom we would like the estimated Bradley-Terry score.

lambda_hat

vector contain a list of all the predicted scores from the EM algorithm.

players

vector containing a list of players for which there is a predicted Bradley-Terry score.

Value

The predicted score of the player. If the player is not found within the list of players then -1 is returned.


ss15859/tennis.wta documentation built on Jan. 24, 2021, 12:46 a.m.