11.08.2013 Views

Simulation - Hadley Wickham

Simulation - Hadley Wickham

Simulation - Hadley Wickham

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

•<br />

•<br />

•<br />

Your turn<br />

Create a function that draws a histogram of<br />

n replicates of mean(rnorm(100))<br />

Modify your function to draw a histogram of<br />

n draws of mean(rnorm(m))<br />

Modify your function to allow the user to<br />

choose which distribution function, d, to use

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!