This repository contains the code accompanying the paper "Preference-Based Dynamic Ranking Structure Recognition".
It includes three main modules with reproducible analyses and plotting utilities:
nba/— NBA data analysis and visualizationsimulation--grouping/— grouping simulation experimentssimulation--structure/— structure-detection simulation and sensitivity analyses
Reproduce the NBA analysis and plotting:
- Run the main analysis (saves logs under
runout/):
Rscript nba/NBAmain.R > runout/output-nba.log 2> runout/error-nba.log- Create plots:
Rscript nba/nbaPlot.R
Rscript nba/PanelPlot.R
Rscript nba/noPanelPlot.RFiles of interest:
NBAmain.R— main script for NBA analysisnbaPlot.R— heatmap plottingPanelPlot.R— score estimation with penaltynoPanelPlot.R— score estimation without penaltyPFunc.R,Func.R,FuncContinue.R— supporting functions
Reproduce the grouping simulation results:
- Run the simulations (logs to
runout/):
Rscript simulation--grouping/simu1.R > runout/output-simu1.log 2> runout/error-simu1.log
Rscript simulation--grouping/simu2.R > runout/output-simu2.log 2> runout/error-simu2.log- Generate plots:
Rscript simulation--grouping/simuPlot.RFiles of interest:
simu1.R,simu2.R— simulation for different parameter setssimuFunc.R— helper functions used by the simulationssimuPlot.R— script to produce plots
Reproduce the structure-detection simulation and sensitivity analyses:
- Run the main parameter experiments (logs to
runout/):
Rscript simulation--structure/Para1.R > runout/output-Para1.log 2> runout/error-Para1.log
Rscript simulation--structure/Para2.R > runout/output-Para2.log 2> runout/error-Para2.log- Generate plots:
Rscript simulation--structure/simuPlot.R- Sensitivity analysis:
Rscript simulation--structure/parameter_sensitivity.R > runout/output-sen1.log 2> runout/error-sen1.log
Rscript simulation--structure/parameter_sensitivity_para2.R > runout/output-sen2.log 2> runout/error-sen2.logFiles of interest:
Para1.R,Para2.R— main parameter-setting scriptsparameter_sensitivity.R,parameter_sensitivity_para2.R— sensitivity analysesdpFunc.R,dpFuncContinue.R— core dynamic programming functionsgpFunc.R— grouping-related functionssimuPlot.R— plotting utilities