Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set obs 100000
- set seed 980
- foreach i in 100000 100 10 {
- gen x`i' = runiform()*10 in 1/`i'
- histogram x`i', bin(10) kden
- graph save hist_x`i'_10.gph, replace
- graph export his_x`i'_10.png, replace
- }
- sum x*, detail
- histogram x100000, bin(50) kden
- graph save hist_x100000_50.gph, replace
- graph export his_x100000_50.png, replace
- log close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement