calculateParameterDifference function

Internal: Parameter differences across groups