# From the previous problem sets
setwd()
read.csv()
mean()
# New in this problem set
# Subsetting data; for example:
data$var1[data$var2==1]Problem Set 3
Important
Due September 22nd at 10:30 am on Canvas
Problem Set 3 is posted on Canvas. You must use the provided RMarkdown file to complete this problem set.
- Use the RMarkdown file provided (.Rmd extension) and write your answers and code in the spaces provided. Submit the PDF that is “knitted” (1 file).1
If you have any issues using RMarkdown please see me in my office so we can make sure you can knit the file on your computer.
Files
Purpose
This third problem set will help you practice:
- Setting the working directory
- Loading data into R
- Computing and interpreting the mean of a variable for different subsets of a sample
- Estimating the average treatment effect for a randomized experiment
You will use the following commands:
Criteria for success
In addition to providing the correct code and/or answer, a successful problem set will:
- Have clear explanations that demonstrate your knowledge of the material
- Use the “comment out” function to explain what the code is doing