I have two different variables in R. The first ("candimmi") represents political candidates' opinion on immigration. The second variable (voterimmi) represents voters opinion on immigration. Both variables have the same 3 levels being either anti-immigration, intermediate or pro-immigration.
My issue is that I want to create a new variable stating wether there is congruence or not between the voter and the political candidates. The levels in the new variable would be called "both anti-immigrant", "both intermediate", "both pro-immigration" and "mismatch".
Can any of you give me some advice on how to do this?
Thanks in advance!
Best, Malte
I have tried finding solutions already, but can't find any answers to my question online.