Hello all,
I was trying to create a density graph to measure unionised worker's density over the complete wage distribution for men and women in my work, but I am unable to create an effective graph. I have tried this code
but after the code runs I get a graph at every wage value instead of covering the complete distribution. Is there a way where I am able to measure a dummy variable's density over a continuous distribution?
I was trying to create a density graph to measure unionised worker's density over the complete wage distribution for men and women in my work, but I am unable to create an effective graph. I have tried this code
Code:
twoway kdensity union if female==0 || kdensity union if female==1, by(lnwage) title(Union Density) legend(label(1 "Male") label(2 "Female"))
Comment