Dear members of the list,
I want to compute the average level of gender egalitarianism for each wave and country in a panel survey. The gender egalitarianism variable at the individual level is ordinal (1==low, 2==medium, 3==high). This variable is created out of the interviewee's agreement with the following statement: 'Jobs scarce: Men should have more right to a job than women', duly inverted. For instance, for a given country and wave, the distribution of the sample across levels of gender egalitarianism is as follows:

For the summary index I want to create, I need to consider the frequencies of each level for each wave and country; that is, how frequently the answers for values 1, 2, 3 in the gndr_eg variable above were chosen
I suspect I have to create first a variable with the total number of respondents for each level....
....and then a weighted average of the three responses. Something like this:
But this last step is what I don't know how to do. I do not even know if the whole procedure is correct.
I would appreciate any help from you.
As previously advised in this list, I paste a sample of the data with dataex (see below). Thanks for your attention
And best wishes
Luis Ortiz
I want to compute the average level of gender egalitarianism for each wave and country in a panel survey. The gender egalitarianism variable at the individual level is ordinal (1==low, 2==medium, 3==high). This variable is created out of the interviewee's agreement with the following statement: 'Jobs scarce: Men should have more right to a job than women', duly inverted. For instance, for a given country and wave, the distribution of the sample across levels of gender egalitarianism is as follows:
For the summary index I want to create, I need to consider the frequencies of each level for each wave and country; that is, how frequently the answers for values 1, 2, 3 in the gndr_eg variable above were chosen
I suspect I have to create first a variable with the total number of respondents for each level....
HTML Code:
bysort cntry S020: egen gndreg_count1 = total(gndr_eg == 1) bysort cntry S020: egen gndreg_count2 = total(gndr_eg == 2) bysort cntry S020: egen gndreg_count3 = total(gndr_eg == 3)
HTML Code:
bysort cntry S020: egen av_gndr_eg = (gndr_count1+gndr_count2+ gndr_count3/ total number of cases per wave and country) * 1000
I would appreciate any help from you.
As previously advised in this list, I paste a sample of the data with dataex (see below). Thanks for your attention
And best wishes
Luis Ortiz
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(female gndr_eg) int S020 1 1 2008 1 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 2 2 2008 1 1 2008 1 3 2008 2 1 2008 2 1 2008 1 1 2008 2 3 2008 2 1 2008 2 3 2008 1 1 2008 1 1 2008 2 1 2008 2 1 2008 1 1 2008 1 3 2008 1 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 2 3 2008 2 1 2008 1 1 2008 1 1 2008 1 1 2008 2 2 2008 2 1 2008 2 1 2008 1 1 2008 2 1 2008 2 2 2008 1 1 2008 2 1 2008 1 3 2008 2 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 2 1 2008 2 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 2 1 2008 2 1 2008 2 1 2008 2 1 2008 2 1 2008 2 1 2008 1 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 1 1 2008 2 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 2 1 2008 2 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 1 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 1 1 2008 1 1 2008 1 1 2008 1 1 2008 2 1 2008 1 1 2008 1 1 2008 2 1 2008 2 1 2008 2 1 2008 2 1 2008 1 1 2008 2 1 2008 1 1 2008 2 1 2008 end label values female X001 label def X001 1 "Male", modify label def X001 2 "Female", modify label values S020 S020 label def S020 2008 " 2008", modify

Comment