Hi,
I have an English language speaking categorical variable and a group categorical variable. I want to know the percent English speaking ability of different groups.
The prop command for the group taking the value 1 is showing:
Proportion estimation Number of obs = 42,939
--------------------------------------------------------------
| Logit
| Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
ED3 |
none | .6077226 .0023563 .6030948 .6123311
Little 1 | .2936724 .0021979 .289383 .2979987
Fluent 2 | .098605 .0014387 .0958207 .1014611
--------------------------------------------------------------
The bar graph shows percentages for the first group as follows:
1. 12.9% for none
2. 6.2% for little
3. 2.1% for fluent
I have attached an example of the data set using dataex
I have an English language speaking categorical variable and a group categorical variable. I want to know the percent English speaking ability of different groups.
Code:
graph bar (percent), over(ED3) over(groups) asyvars blabel(bar, format(%9.1f))
Proportion estimation Number of obs = 42,939
--------------------------------------------------------------
| Logit
| Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
ED3 |
none | .6077226 .0023563 .6030948 .6123311
Little 1 | .2936724 .0021979 .289383 .2979987
Fluent 2 | .098605 .0014387 .0958207 .1014611
--------------------------------------------------------------
The bar graph shows percentages for the first group as follows:
1. 12.9% for none
2. 6.2% for little
3. 2.1% for fluent
I have attached an example of the data set using dataex
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int(ED3 groups) 0 4 1 4 1 4 0 4 0 4 0 4 0 4 0 4 1 4 0 4 0 4 1 4 2 4 0 4 0 4 2 4 2 4 0 4 1 4 0 4 0 4 0 4 0 4 1 4 0 4 0 4 1 4 1 4 0 4 0 4 0 4 0 4 0 4 0 4 1 4 0 4 . 4 1 4 0 4 1 4 0 4 0 4 0 4 0 4 0 4 1 4 1 4 1 4 0 4 2 4 1 4 0 4 0 4 0 4 0 4 0 4 1 4 2 4 1 3 1 4 0 4 1 4 0 4 1 4 1 4 0 4 1 4 0 4 0 4 0 4 0 4 0 4 1 4 0 4 0 4 1 4 0 4 1 4 0 4 0 4 0 4 0 4 0 4 0 4 1 4 1 4 0 4 1 4 0 4 0 4 2 4 0 4 0 4 0 4 1 4 0 4 1 4 0 4 0 4 1 4 end label values ED3 ED3 label def ED3 0 "none", modify label def ED3 1 "Little 1", modify label def ED3 2 "Fluent 2", modify label values groups groups label def groups 3 "SC/STs", modify label def groups 4 "Muslims", modify
Comment