This function calculates the best stage configuration of a hyperstage associated with a specific variable of time-slice t_0 or t_k, k>=1, using the oahc algorithm (oahc - Optimised Agglomerative Hierarchical Clustering)
OAHC(level, prior.distribution, contingency.table, tree)
numeric - level under optimisation
(list of matrices) - see function
prior.distribution
(list of matrices) - see function ContingencyTable
an object 'Event.tree'
a OAHC S4 object
SingleScore, PairwiseScore, SingleReorder, NaReorder, KeepLexOrder