Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. set obs 100000
  2. set seed 980
  3. foreach i in 100000 100 10 {
  4. gen x`i' = runiform()*10 in 1/`i'
  5. histogram x`i', bin(10) kden
  6. graph save hist_x`i'_10.gph, replace
  7. graph export his_x`i'_10.png, replace
  8. }
  9. sum x*, detail
  10. histogram x100000, bin(50) kden
  11. graph save hist_x100000_50.gph, replace
  12. graph export his_x100000_50.png, replace
  13.  
  14.  
  15. log close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement