Hi statalisters,
For the below dataset, the variables of PUWLE, PHWLE, POWLE, and POBLE are percentages representing the proportions of TLE_01. I would like to create two separate bar plots separately for females and males. For each sex group, I would like to create a stack bar plot of the proportions noted above by sample_.
Thanks,
Nader
For the below dataset, the variables of PUWLE, PHWLE, POWLE, and POBLE are percentages representing the proportions of TLE_01. I would like to create two separate bar plots separately for females and males. For each sex group, I would like to create a stack bar plot of the proportions noted above by sample_.
Thanks,
Nader
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str18 sample_ str6 sex float(PUWLE PHWLE POWLE POBLE TLE_01) "Non-Hispanic White" "Female" 2.2562733 32.15409 32.447655 33.141983 31.18791 "Black" "Female" 1.338273 16.99335 30.90398 50.7644 28.9989 "Hispanic" "Female" 1.5642548 24.18444 35.418617 38.83269 32.706757 "Non-Hispanic White" "Male" 2.2562733 32.15409 32.447655 33.141983 31.18791 "Black" "Male" 1.338273 16.99335 30.90398 50.7644 28.9989 "Hispanic" "Male" 1.5642548 24.18444 35.418617 38.83269 32.706757 end
Comment