get_rank_of_players: Generate a ranking of the ability based on sampling the...

Description Usage Arguments Value Examples

View source: R/bpc_exports.R

Description

To print this object you should remove the last column PosteriorRank since it contain the whole posterior distribution for each case

Usage

1
get_rank_of_players(bpc_object, n = 1000)

Arguments

bpc_object

a bpc object

n

Number of times we will sample the posterior

Value

a data frame. This data frame contains the median of the rank, the mean, the standard deviation and column with a list containing all the posterior values for the rank

Examples

1
2
3
4
5
6
7
8
9
m<-bpc(data = tennis_agresti,
player0 = 'player0',
player1 = 'player1',
result_column = 'y',
model_type = 'bt',
solve_ties = 'none')
rank_m<-get_rank_of_players(m,n=100)
rank_table <- dplyr::select(rank_m,-MeanRank, -StdRank,-PosteriorRank)
print(rank_table)

bpcs documentation built on Dec. 15, 2020, 5:23 p.m.