📝 Simulating from the Regression Model

Published

August 5, 2022

Here are links to several script files and handouts that we will use in class.


Generating Data


Simulation 1: Simulating from a Regression Model


Simulation 2: Simulating from a Null Regression Model


Resources

Here are several resources to help your understanding of simulation. The chapters from Monte Carlo Simulation and Resampling Methods for Social Science should be accessible via the links after logging in with your x500 and password.

  • Probability: Common probability distributions and how to compute with them.
  • Random Number Generation: Learn how to draw random numbers from different distributions. Also information about repeating processes in R, including writing your own functions, using for loops, and using if-else functions.