Add mean to histogram stata The x-axis should show the satisfaction of life on a scale from 0 (not satisfied) to 10 (very satisfied). I am using Stata 18 I have used the following code (to obtain the mean value) and try to draw the normal density plot (dlwg6 is the continuous variable of interest) summ dlwg6 local a= r (mean) hist dlwg6, normal gap (5) xline (`a') however with the above command I get the plot without the xline But if The position of the -xlines ()- cannot be changed, but not to worry. 1 The goal This tip is a miniature review of how you can add extra lines to graphs in Stata. To create histogram in Stata, click on the ‘Graphics’ option in the menu bar and choose ‘Histogram’ from the dropdown. Description yline(), xline(), and tline() are used with twoway to add lines to the plot region. If skewness > 0, the data are spread out more to the zscale(axissuboptions)howcontourlegendaxislooks Theaboveoptionsaremerged-implicit;see[G-4]Concept:repeatedoptions. The histogram will give us an idea about whether the distribution (of the continuous variable) is normal or skewed. pdf function from scipy. msymbol(O D S T + X o d s t smplus x) is the default. -histogram- supports the -addplot()- option, so we can add any -twoway- plot to our histogram, and because those plots will be drawn after the histogram bars, they will overlay the bars. ukamcxw ktxjf pzrem fieyk fxk easvutwwr sjcboty kmj spq zuxnbao fuxst mib lvi ijem kdyp