Hi all, I'm new to stata.
I have a variable (intnl) and it has 442 values of either 0 or 1 to represented the internationalised nature of a civil war (0 = No, 1 = Yes).
I have even created a new variable (x1) with the individual frequencies
. tab intnl, matcell(x)
My question is, how do I generate a bar graph with 2 bars, one displaying the frequency of "Yes2 and the other the frequency of "No". So far I have only been able to generate a graph with 1 bar which shows the sum.
Any help is much appreciated, thank you.
I have a variable (intnl) and it has 442 values of either 0 or 1 to represented the internationalised nature of a civil war (0 = No, 1 = Yes).
I have even created a new variable (x1) with the individual frequencies
. tab intnl, matcell(x)
Code:
Intnl | Freq. Percent Cum.
------------+-----------------------------------
0 | 269 60.86 60.86
1 | 173 39.14 100.00
------------+-----------------------------------
Total | 442 100.00
. matrix list x
x[2,1]
c1
r1 269
r2 173
. svmat x
. list x* in 1/10
+-----+
| x1 |
|-----|
1. | 269 |
2. | 173 |
3. | . |
4. | . |
5. | . |
|-----|
6. | . |
7. | . |
8. | . |
9. | . |
10. | . |
+-----+
Any help is much appreciated, thank you.

Comment