Dear Statalist:
I'm playing around with the excellent user-written command -stripplot- by Nick Cox (I hope I did that right).
I've gotten most of what I want but I'm trying to put deciles on it instead of a box plot. This is non-standard, but I think it probably gives a better sense of what is going on with the data.
And then I ran something like this:
I've been trying to do something with the option reflevel (with either pctile or xtile), and maybe there's a way to do something with the box option? But I'm increasingly thinking I will need to lay another graph over this. Does anyone have an idea of how to do this?
Thanks,
Jonathan
I'm playing around with the excellent user-written command -stripplot- by Nick Cox (I hope I did that right).
I've gotten most of what I want but I'm trying to put deciles on it instead of a box plot. This is non-standard, but I think it probably gives a better sense of what is going on with the data.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(income female) 95704.73 0 81228.63 0 87905.97 0 82703.98 0 75585.75 0 57527.77 0 86251.52 0 73205.29 0 83702.41 0 88789.44 0 74163.18 0 68735.63 0 75812.84 0 60658.98 0 63960.63 0 66904.6 0 76574.77 0 73425.234 0 64538.88 0 37272.945 0 65383.36 0 76498.24 0 83368.27 0 69704.7 0 61884.38 0 63960.63 0 71255.195 0 71899.38 0 60416.83 0 61514.18 0 57355.45 0 60780.42 0 73132.125 0 65514.25 0 52629.02 0 35597.227 0 77965.6 0 101724.45 0 79064.8 0 70264.58 0 82373.82 0 96377.02 0 73498.7 0 74833.66 0 63641.63 0 73719.52 0 70899.81 0 63324.21 0 73278.53 0 73498.7 0 70264.58 0 34683.63 0 59815.67 0 47907.29 0 52471.38 0 51329.61 0 46771.2 0 39223.17 0 70194.34 0 79143.91 0 56388.64 0 59935.43 0 49316.95 0 59339.05 0 77887.68 0 57931.87 0 65122.34 0 45343.54 0 65842.65 0 64024.62 0 62443.85 0 78356.41 0 102849.6 0 66770.92 0 46213.3 0 66238.88 0 82456.23 0 80823.5 0 76498.24 0 68598.3 0 66637.516 0 57126.48 0 64862.38 0 59995.39 0 53799.69 0 68598.3 0 65383.36 0 70828.945 0 72549.4 0 42532.47 0 51073.6 0 63197.69 0 56332.28 0 66504.375 0 59220.5 0 61452.7 0 60537.79 0 66837.734 0 61146.2 0 57585.32 0 end
And then I ran something like this:
Code:
stripplot income, over(female) vertical ms(oh) mc(red%30) msize(tiny) jitter(10) refline(lw(medthick)) reflinestretch(0.4)
Thanks,
Jonathan
Comment