Hello,
I have two variables and two groups in my data that I want to plot the percentages of. So, I have kids who are either "screened in" or "screened out" measured by a 0 1 dummy called "screenedin." I also have two variables: exp_risk_screenout and exp_risk_screenin. These are also dummy variables that show, for instance, you are exposed to risk and also screened in you will get a 1 for exp_risk_screenin. I want to plot these variables together so that it would show two bars, one for screened in and one for screened out and it would show the percentages like 27% have a 1 for exp_risk_screenout and 10% have a 1 for exp_risk_screenout. I have put data below. Thanks -CJ
I have two variables and two groups in my data that I want to plot the percentages of. So, I have kids who are either "screened in" or "screened out" measured by a 0 1 dummy called "screenedin." I also have two variables: exp_risk_screenout and exp_risk_screenin. These are also dummy variables that show, for instance, you are exposed to risk and also screened in you will get a 1 for exp_risk_screenin. I want to plot these variables together so that it would show two bars, one for screened in and one for screened out and it would show the percentages like 27% have a 1 for exp_risk_screenout and 10% have a 1 for exp_risk_screenout. I have put data below. Thanks -CJ
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(screenedin exp_risk_screenout) 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 1 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1 0 end
Comment