Hello all,
I am using the function “Catplot” on Stata and I am having troubles to get out the right figure that I want to present. My variables are: employed (binary), parental education (low, medium, high) and time (0,1). The time variable represents two different cross-sectional waves (2005 and 2011). My aim is to compare the level of employment by different social backgrounds between the two waves. For instance, the number of individuals who have a low parental background and were no employed in 2005 is 16 (28%) compared with 41 (72%) who were employed. On the other hand, the number of individuals who have a low parental background and were not employed in 2011 is 27 (24%) compared with 87 (76%) that were employed.
What I would like from “Catplot” to produce is a graph that shows people who were not employed in both waves by their different parental background on one side of the graph. For example for one category, I would like to see: Not employed 2005: (28%(16/55)) and Not employed 2011: (24%(27/114)).
The output that I am getting is including all the frequencies together (16+41+27+87+74+102+201+260+179+201+747+677=2612). These are the frequencies of being employed by different social background in two waves (2x3x2=12 categories). Hence, the graph shows: Not employed 2005: 0.6% (16/2612) and Not employed 2011: 1.6% (41/2612).
I tried several ways to find the solution by using the option “by”, with no success.
Here is the function that is producing the latter result:
catplot time parents_educ employed percent blabel(bar, position(time) format(%9.1f)) title ("Germany") var1opts(gap(0)) recast(bar) bar(1, blcolor(red) bfcolor(red)) asyvars bar(1, color(black))
Thanks in advance
I am using the function “Catplot” on Stata and I am having troubles to get out the right figure that I want to present. My variables are: employed (binary), parental education (low, medium, high) and time (0,1). The time variable represents two different cross-sectional waves (2005 and 2011). My aim is to compare the level of employment by different social backgrounds between the two waves. For instance, the number of individuals who have a low parental background and were no employed in 2005 is 16 (28%) compared with 41 (72%) who were employed. On the other hand, the number of individuals who have a low parental background and were not employed in 2011 is 27 (24%) compared with 87 (76%) that were employed.
What I would like from “Catplot” to produce is a graph that shows people who were not employed in both waves by their different parental background on one side of the graph. For example for one category, I would like to see: Not employed 2005: (28%(16/55)) and Not employed 2011: (24%(27/114)).
The output that I am getting is including all the frequencies together (16+41+27+87+74+102+201+260+179+201+747+677=2612). These are the frequencies of being employed by different social background in two waves (2x3x2=12 categories). Hence, the graph shows: Not employed 2005: 0.6% (16/2612) and Not employed 2011: 1.6% (41/2612).
I tried several ways to find the solution by using the option “by”, with no success.
Here is the function that is producing the latter result:
catplot time parents_educ employed percent blabel(bar, position(time) format(%9.1f)) title ("Germany") var1opts(gap(0)) recast(bar) bar(1, blcolor(red) bfcolor(red)) asyvars bar(1, color(black))
Thanks in advance
Comment