This helper function is called by the function 'crossoverResidualAnalysis' to perform either an AB/BA crossover analysis or a four-group crossover on the data set defined by the parameter DataSet depending on the value of the Type parameter.
doLM(DataSet, Metric, Type)
The data analysis results provided by the lmer function of the lme4 package
The dataset to be analysed.
The name of the variable to be analysed
Defines the experimental design
Barbara Kitchenham and Lech Madeyski