Skip to contents

All functions

ATP_2000_2022
ATP Paired-Comparison Panels, 2000–2022
clean_players_names()
Format player/item names as "Surname F."
compare_bt_models_loo()
Compare BT models with Pareto-smoothed importance sampling LOO
gibbs_bt_sbm()
Gibbs sampler for the Bradley–Terry Stochastic Block Model (BT–SBM)
gibbs_bt_simple()
Simple Bradley–Terry Gibbs sampler (no clustering)
gnedin_K_mean()
Expected number of clusters under the Gnedin prior
gnedin_K_var()
Variance of the number of clusters under the Gnedin prior
lambda_to_theta()
Map \(\lambda\) to Bradley–Terry \(\theta = \lambda_i / (\lambda_i + \lambda_j)\)
make_bt_cluster_loo()
Log-likelihood matrix for the BT–SBM (clustered) model
make_bt_simple_loo()
Log-likelihood matrix for the simple Bradley–Terry model
plot_assignment_probabilities()
Assignment probability heatmap (BT-SBM)
plot_block_adjacency()
Block-ordered adjacency heatmap (BT-SBM)
plot_lambda_uncertainty()
Lambda uncertainty plot (per player)
pretty_table_K_distribution()
Format a block-count posterior distribution as a pretty- table
relabel_by_lambda()
Relabel partitions by decreasing \(\lambda\), compute point estimates, and quantify uncertainty via credible balls
sample_from_BTSBM()
Sample a Bradley–Terry Stochastic Block Model (BT-SBM) tournament
updateZ_and_rowsums()
@keywords internal