Hi there,
I have a problem with my data.
I have a categorical variable named education that indicates the level of education a person has. It has 6 categories, ranging from 1 (finished primary school) to 6 (finished university).
I would like to compare the distribution of this categorical variable between groups, for example men and women (indicated by variable sex, 1=male, 2=female), and see if the distribution is somewhat similar.
I don't know how to do this. I already made dummy variables for every level of education and I used graph bar to see the distribution. I found out that the distribution is not completely the same, but I don't mind a little bit of variation. As long as in general people in one group are not a lot more educated than people in the other group. In the attached file is the data.
I gave here the example of men vs. women, but I would also like to see the difference between religious people vs. non-religious people (dummy variable religious), and the difference between sex and religious combined: sexrelig, with 1: men, non-religious 2: men, religious 3: women, non-religious 4: women, religious
Could you help me? Thank you in advance.
education.dta
I have a problem with my data.
I have a categorical variable named education that indicates the level of education a person has. It has 6 categories, ranging from 1 (finished primary school) to 6 (finished university).
I would like to compare the distribution of this categorical variable between groups, for example men and women (indicated by variable sex, 1=male, 2=female), and see if the distribution is somewhat similar.
I don't know how to do this. I already made dummy variables for every level of education and I used graph bar to see the distribution. I found out that the distribution is not completely the same, but I don't mind a little bit of variation. As long as in general people in one group are not a lot more educated than people in the other group. In the attached file is the data.
I gave here the example of men vs. women, but I would also like to see the difference between religious people vs. non-religious people (dummy variable religious), and the difference between sex and religious combined: sexrelig, with 1: men, non-religious 2: men, religious 3: women, non-religious 4: women, religious
Could you help me? Thank you in advance.
education.dta
Comment