#Compute Confidence Intervals with Specified Options
#Navigate to a folder containing sample data.
cd(matlabroot)
cd('help/toolbox/stats/examples')
#Load the sample data.
load shift
#The data shows the deviations from the target quality characteristic measured from the products that five operators manufacture during three shifts: morning, evening, and night. This is a randomized block design, where the operators are the blocks. The experiment is designed to study the impact of the time of shift on the performance. The performance measure is the deviation of the quality characteristics from the target value. This is simulated data.
#Shift and Operator are nominal variables.
shift.Shift = nominal(shift.Shift);
shift.Operator = nominal(shift.Operator);
#Fit a linear mixed-effects model with a random intercept grouped by operator to assess if performa