Problem Set 2

Important

Due September 20 at 11:59 pm on Canvas

Problem Set 2 is posted on Canvas.

Files

  1. Problem Set - PDF
  2. RMardown file

Purpose

This second problem set will help you practice:

  1. Setting the working directory
  2. Loading data into R
  3. Computing and interpreting the mean of a variable
  4. Identifying treatment and outcome variables in a dataset

You will use the following commands:

# From the previous problem set
setwd()

read.csv()

# New in this problem set
mean()

Criteria for success

In addition to providing the correct code and/or answer, a successful problem set will:

  1. Have clear explanations that demonstrate your knowledge of the material
  2. Use the “comment out” function to explain what the code is doing