a fantastic read check this Post navigation How to Frequency Tables And Contingency Tables Like A Ninja! The Complete Library Of Modelica