Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65055

Scientific notation on histogram with frequency option

$
0
0
I need to use the frequency option with a histogram. Many observations are clustered in a bin at one end of the x range, which gives a high count for that bin. By default, large frequencies are shown using scientific notation, but I would like to replace this on the y axis with normal numbers (e.g., 1,000 instead of 1.0e+04). Problem replication:

Code:
set obs 100000
set seed 1
gen prob = 0.1 * uniform()
replace prob = 0.99 in 1
hist prob, s(0) w(0.02) freq
Thank you.

Viewing all articles
Browse latest Browse all 65055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>