Hi all
Edit: I find a solution, below i post it, but lamentably I can not get the scalar:
I am trying to get the mode from a histogram:
My goal its get the value=25.
I find the solution but I could not get the scalar:
graph save Graph "mpg.gph", replace
clear
graph use mpg
serset use
sum
Edit: I find a solution, below i post it, but lamentably I can not get the scalar:
I am trying to get the mode from a histogram:
Code:
sysuse auto, clear hist mpg, freq addlabels
I find the solution but I could not get the scalar:
graph save Graph "mpg.gph", replace
clear
graph use mpg
serset use
sum
Code:
Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- __000000 | 8 9.25 8.293715 1 25 __000001 | 9 0 0 0 0 __000002 | 9 24.88889 9.609859 12 39.1875 . ret li scalars: r(N) = 9 r(sum_w) = 9 r(mean) = 24.88888888888889 r(Var) = 92.34939236111111 r(sd) = 9.609859122854566 r(min) = 12 r(max) = 39.1875 r(sum) = 224
Comment