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)
Arguments
DataSet: The dataset to be analysed.
Metric: The name of the variable to be analysed
Type: Defines the experimental design
Returns
The data analysis results provided by the lmer function of the lme4 package