I want to obtain the number of observations for a couple where the level of education differs for 0-5 levels, e.g. Year 11 (husband) Year 12 (wife) - 1 level difference. Year 12 (husband) and a Master degree (wife) - 5 level difference. I obtained the number of observations where the difference is 0 with:
Code:
tab couple if educm == educf
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float couple byte(wave educm educf) educm (Note: educm = male educ; educf = female educ) 1 1 3 1 1 2 3 1 1 3 3 1 1 4 3 1 3 14 1 2 3 15 1 2 4 11 3 3 4 12 3 3 4 13 3 3 4 14 3 3 6 1 1 1 6 2 1 1 6 3 1 1 6 4 1 1 7 12 5 7 7 13 5 7 7 14 5 7 8 6 4 1 8 7 4 1 8 8 4 1 8 9 4 1 9 5 3 2 9 6 3 2 9 7 3 2 9 8 3 3 9 9 3 3 10 3 5 2 10 4 5 2 10 5 5 5 10 6 5 5 25 1 6 2 25 2 6 2 25 3 6 2 73 2 5 1 73 3 5 1 73 4 5 1 33 5 7 3 33 5 7 3 33 5 7 3 74 1 7 2 74 2 7 2 74 3 7 2 75 1 6 1 75 2 6 1 75 3 6 1 75 4 6 1 end label values educm educ1 label def educ1 1 "up to 11 years (up to Year 11)", modify label def educ1 2 "12 years (Year 12)", modify label def educ1 3 "13 years (Cert 3/4)", modify label def educ1 4 "14 years (Diploma/Adv Dip)", modify label def educ1 5 "17-19 years (Bachelor/Honours)", modify label def educ1 6 "19-20 years (Grad dip/grad cert)", modify label def educ1 7 "20-25 years (Master, Doctorate)", modify label values educf educ2 label def educ2 1 "up to 11 years (up to Year 11)", modify label def educ2 2 "12 years (Year 12)", modify label def educ2 3 "13 years (Cert 3/4)", modify label def educ2 4 "14 years (Diploma/Adv Dip)", modify label def educ2 5 "17-19 years (Bachelor/Honours)", modify label def educ2 6 "19-20 years (Grad dip/grad cert)", modify label def educ2 7 "20-25 years (Master, Doctorate)", modify
0 Response to Tabulating the number of observations of differences between level of education within couples
Post a Comment