I am building a multilevel model with students at level 1 and instructors at level 2 and I have variables at each level to indicate the gender of the students and their instructors (see coding below). What is the best way to compare students of the same gender as their instructor with students of the opposite gender as their instructors on the outcome variable?
What I have Tried:
Any and all suggestions would be greatly appreciated.
Current Variable Coding
Male Student = 0
Female Student = 1
Male Instructor = 0
Female Instructor = 1