🎶 Simulating from the Regression Model
Here are links to several script files and handouts that we will use in class.
Generating Data
- Generating Random Data from a Regression Model is a script file that provides syntax for generating data from a given population regression model.
Simulation 1: Simulating from a Regression Model
- Simulating from a Regression Model is a script file that provides syntax for carrying out a simulation to produce distributions of estimates from a regression model.
- Vizualization of Simulating from a Regression Model is a handout visualizing the simulation process for generating data from a given population regression model.
Simulation 2: Simulating from a Null Regression Model
- Simulating from a Null Regression Model is a script file that provides syntax for carrying out a simulation to produce distributions of estimates assuming certain parameters in the regression model are zero.
- Vizualization of Simulating from a Null Regression Model is a handout visualizing the simulation process for generating data to produce distributions of estimates assuming certain parameters in the regression model are zero.
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.