This week, Ellis Hughes and I begin a new series titled, Sampling, Simulations, and Intro to Bayes. To get us started we begin this first episode by discussing how to use the various distribution functions in R for doing things like simulating a random draw, cumulative density function, probability mass/probability density functions, and quantiles. We then walk through an example of how to use these functions to create random samples of intercepts and slopes from a regression model and plot our uncertainty.
To watch the screen cast, CLICK HERE.
To access our code, CLICK HERE.