Learning Objectives

Motivation

Future Overview

Evaluation Plans

{furrr}

{foreach}

Simulation Study Example

Bash notes:

Exercise

Recall the normal simple linear regression model: \[ y_i = \beta_0 + \beta_1x_i + \epsilon_i\\ \epsilon_i \overset{iid}{\sim} N(0, \sigma^2) \]

Write a simulation study where you fix \(x_i \sim N(0, 1)\) and vary

Each unique combination of parameters should have 200 replicates.

You are exploring the estimation of \(\beta_1\) by ordinary least squares.

Use {foreach} to implement this simulation study in parallel.

What factors seem to affect estimates of \(\beta_1\)?

New Functions


National Science Foundation Logo American University Logo Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.