Hi,
Here is a sample of my data
x is a 4 point likert scale and y is a dummy variable. I want to show the frequency of x in each of likert points for each category of y in a way that I have a vertical line that has 4 categories on each side, on its left it shows the frequency distribution of x for y=0 and on its right side distribution of x when y=1.
attached is a picture I found online similar to what I am trying to do, if that helps at all.
I really appreciate your help.
Here is a sample of my data
Code:
input int x int y x y 3 1 1 1 2 0 3 1 2 1 3 0 3 1 1 1 2 0 4 0 4 1 3 1 2 1 4 1 3 0 1 0 4 0 4 0 4 1 2 0 3 1 4 1 3 0 4 0 end
attached is a picture I found online similar to what I am trying to do, if that helps at all.
I really appreciate your help.
Comment