In a sample of a population,. I would like to calculate the ratio of mobile ownership percentage among women to that of among men and then see how this differs by various demographic characteristics such as district, level of education...etc.
Let's say that I have two variables: sb1q4 whose two values are "male" and "female", sc2q05 whose three values are "mobile phone", "smart phone", "none of the above", Let's make a variable for ownership of any mobilephone through "gen byte mob = inlist(sc2q05, 1, 2)". I want to divide the percentage of mobile ownership among females to the percentage of mobile ownership among males to simply gauge the level of equality of ownership of such technology between the two genders in a certain population, this is done by seeing how close is the percentage of the females to that of the males, 100% being ofcourse equal. How would I do this?
Ideally, the result should look something like this if I were to calculate the level of mobile ownership equality between the two genders by their respective marital status:
Here is some data:
Let's say that I have two variables: sb1q4 whose two values are "male" and "female", sc2q05 whose three values are "mobile phone", "smart phone", "none of the above", Let's make a variable for ownership of any mobilephone through "gen byte mob = inlist(sc2q05, 1, 2)". I want to divide the percentage of mobile ownership among females to the percentage of mobile ownership among males to simply gauge the level of equality of ownership of such technology between the two genders in a certain population, this is done by seeing how close is the percentage of the females to that of the males, 100% being ofcourse equal. How would I do this?
Ideally, the result should look something like this if I were to calculate the level of mobile ownership equality between the two genders by their respective marital status:
Code:
| Summary of | femaledividedbymale | state | Mean ------------+------------ unmarried / never married | 32.6 currently married | 67.4 widow / widower | 91.2 ------------+------------ Total | 63.7
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte sb1q4 1 2 2 2 2 1 1 1 1 2 2 2 2 1 2 1 1 2 1 2 2 1 2 1 2 1 1 1 2 2 1 2 2 1 2 1 2 1 1 2 1 1 2 2 1 1 1 1 2 2 1 2 1 2 2 2 1 1 2 2 2 2 2 2 2 1 2 2 2 2 1 1 2 2 1 1 2 1 2 2 1 2 2 1 2 1 1 1 1 1 2 2 2 1 2 1 2 1 1 2 end label values sb1q4 sb1q4 label def sb1q4 1 "male", modify label def sb1q4 2 "female", modify
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte sc2q05 1 1 3 3 3 3 3 3 1 3 2 3 3 3 2 3 3 3 2 2 3 1 3 3 3 1 3 3 1 1 3 1 3 2 1 2 1 3 3 3 2 2 3 1 3 3 3 2 3 3 2 1 1 3 3 3 3 3 3 1 3 3 3 3 3 1 2 1 3 3 3 1 3 1 1 2 3 1 3 3 1 3 3 3 1 3 3 3 3 1 3 3 3 1 2 3 3 3 3 3 end label values sc2q05 sc2q05 label def sc2q05 1 "mobile phone", modify label def sc2q05 2 "smart phone", modify label def sc2q05 3 "none of above", modify
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte sb1q7 2 2 1 1 1 1 1 1 2 2 2 1 1 1 2 1 1 3 2 2 1 2 2 2 2 1 1 1 2 3 1 1 1 2 2 2 2 1 1 2 1 1 1 3 1 1 1 1 3 1 2 2 1 1 1 1 1 1 1 2 1 1 1 1 1 2 2 2 1 1 1 2 2 3 1 1 1 1 3 1 2 2 1 1 2 1 1 1 1 2 2 1 1 2 2 1 1 1 2 2 end label values sb1q7 sb1q7 label def sb1q7 1 "unmarried / never married", modify label def sb1q7 2 "currently married", modify label def sb1q7 3 "widow / widower", modify
Comment