# From the previous problem set
setwd()
read.csv()
# New in this problem set
mean()Problem Set 2
Important
UPDATED: Due September 15th at 11:59 pm on Canvas
Problem Set 2 is posted on Canvas. You have two options for how to complete the assignment.
- Type up your answers in a text processor and write your code in an R script. Submit a PDF of the answers as well as your Rscript (2 files).
- 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
Purpose
This second problem set will help you practice:
- Setting the working directory
- Loading data into R
- Computing and interpreting the mean of a variable
- Identifying treatment and outcome variables in a dataset
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