Simulations with Random Numbers

Randomly-generated numbers by a computer are not actually random. They are programmed to seem random. This is technically considered pseudorandom. To repeatedly use the same set of randomly-generated numbers in R, use the set.seed(1) function.

https://d396qusza40orc.cloudfront.net/compdata/slides%2Fsimulation.pdf

Screenshot from 2013-10-12 18:55:15

Advertisements

About Lisa Johnson

PhD candidate at UC Davis.
This entry was posted in Coursera, R. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s