Hi all, data are below.
I wish to make a histogram of this variable. I would like to add a vertical line to the x-axis, and bring it at the forefront of the histogram.
The below code does everything, but does not bring the line at the forefront:
How can I bring the line in front of the bars of the histogram?
I wish to make a histogram of this variable. I would like to add a vertical line to the x-axis, and bring it at the forefront of the histogram.
The below code does everything, but does not bring the line at the forefront:
Code:
su mcq_exam_gap hist mcq_exam_gap, w(1) xti("Differential MCQ Less Final Exam Grade") xline(`r(mean)') freq
Code:
clear input float mcq_exam_gap -10 0 -12 -27 -15 -1 -15 -15 9 -11 5 7 14 -44 -2 14 3 12 -9 0 7 10 32 -20 4 -3 -8 -8 53 -1 -15 1 -5 3 15 -5 23 -5 18 -3 5 -14 0 -24 -10 4 -8 0 -6 -6 8 12 -9 -1 15 -21 -3 19 12 13 -7 7 17 -35 -28 15 -5 -6 0 2 5 12 -2 -13 1 -7 -4 -4 3 -2 -2 -2 -23 -15 -7 -7 0 -13 -6 -5 -13 -4 -3 -2 -9 -14 -35 -2 -3 -7 end
Comment