The folder "fitted_rates" contains the rates fitted for the general model from the experimental data with abstentions. Each file contains the values of the 9 parameters of the model in the order: [a_XY, b_XY, c_XY, a_XW, b_XW, c_XW, a_WX, b_WX, c_WX].

The folder "simulations" contains the simulation data of the model using the fitted parameters. These are used to plot Figures S20 to S31 of the Supplementary Information. This simulation data is generated using the "voting_sim.m" script.

The fitting of the parameters is performed by running "fit_voting_data.m", which uses the function "fit_spd.m" to fit the stationary probability distribution to the data and the function "loglike.m" to compute the log path likelihood of the data which in turn requires the function "exQ.m" to compute the transition matrix.

plot_voting_data.py plot figures S20 to S31 of the Supplementary Information using the voting data, the simulation data and the fitted rates.

curvature_analysis_hyperbolic_projection.py performs the curvature analysis of the voting data projected into the hyperbolic manifold. It fits the straight line, the hyperbola and a combined fit to show that the data presents a curvature.

curvature_analysis_line_projection.py performs the same analysis as curvature_analysis_hyperbolic_projection.py but with the voting data projected into the straight line manifold. Similarly, it fits the straight line, the hyperbola and a combined fit to show that the data presents a curvature.




