Hello,
I have three categorical variables and I wanted some sort of graphical representation for my thesis.
My topic is association between asthma and anxiety over the time period of 2012-2014.
My variables look like this.
. tab ConDr
Doctor diagnosed asthma | Freq. Percent Cum.
------------------------+-----------------------------------
Yes | 1,199 19.90 19.90
No | 4,825 80.10 100.00
------------------------+-----------------------------------
Total | 6,024 100.00
. tab GHQg2
(D) GHQ Score - grouped |
(0,1-3,4+) | Freq. Percent Cum.
------------------------+-----------------------------------
Score 0 | 3,229 58.29 58.29
Score 1-3 | 1,431 25.83 84.12
Score 4+ | 880 15.88 100.00
------------------------+-----------------------------------
Total | 5,540 100.00
. tab SYear
Survey year | Freq. Percent Cum.
------------+-----------------------------------
2012 | 1,964 32.58 32.58
2013 | 2,143 35.54 68.12
2014 | 1,922 31.88 100.00
------------+-----------------------------------
Total | 6,029 100.00
I wonder if someone could help me out with the appropriate stata command.
I tried this command gr bar GHQg2, by(ConDr SYear).
However I'd like the three categories of GHQg2 also taken into account. Not Its mean value.
Thank you.
I have three categorical variables and I wanted some sort of graphical representation for my thesis.
My topic is association between asthma and anxiety over the time period of 2012-2014.
My variables look like this.
. tab ConDr
Doctor diagnosed asthma | Freq. Percent Cum.
------------------------+-----------------------------------
Yes | 1,199 19.90 19.90
No | 4,825 80.10 100.00
------------------------+-----------------------------------
Total | 6,024 100.00
. tab GHQg2
(D) GHQ Score - grouped |
(0,1-3,4+) | Freq. Percent Cum.
------------------------+-----------------------------------
Score 0 | 3,229 58.29 58.29
Score 1-3 | 1,431 25.83 84.12
Score 4+ | 880 15.88 100.00
------------------------+-----------------------------------
Total | 5,540 100.00
. tab SYear
Survey year | Freq. Percent Cum.
------------+-----------------------------------
2012 | 1,964 32.58 32.58
2013 | 2,143 35.54 68.12
2014 | 1,922 31.88 100.00
------------+-----------------------------------
Total | 6,029 100.00
I wonder if someone could help me out with the appropriate stata command.
I tried this command gr bar GHQg2, by(ConDr SYear).
However I'd like the three categories of GHQg2 also taken into account. Not Its mean value.
Thank you.
Comment