First of all, here is what my data looks like: | ID | trialType | task | | ----- | ------ | ------ | | 34 | switch | 1| | 22 | switch | 2| | 16 | switch | 1| |