I have emotion response and preference response from normal hearing and hearing impaired people for both 28 piano and drum clips. I have two factors tempo of the songs and mode of the song (major or minor). I want to look at both the fixed effects of tempo and mode and the interaction effects on each of these groups. I am using Three way anova with Tempo (continuous), Mode(Nominal) and Hearing ability (Nominal).
However, I am having issues creating a column for Hearing ability since my data as shown in attached figure. I would like to create a separate column as Hearing ability with labels (0-Normal hearing, 1-Hearing Impaired). However, My data for emotion and preference for Normal hearing and hearing impaired are in separate columns.
If I put all the data for emotion both groups in one column and label it as emotion then it is possible to create one column as Hearing ability but then I have to append column of tempo and mode with the 28 values appended.
How do i account for Hearing ability in my model and create it as a separate variable?