Homework assignments are posted one week before they are due. Check the syllabus for the submission deadlines.
The goal of homework assignments is for you to apply what we have seen in class.
We will review all the content you need to complete the assignments successfully, but you will need to adapt some of the material to a set of different problems.
A few of the coding questions are also meant for you to learn how to solve simple problems (e.g. data inspection/data wrangling).
All homework assignments include a substantial part of coding, though this is only used as a mean to analyze data. If you are stuck in a specific code for too long, make sure to reach out to the instruction team!
Homework assignments are posted on Canvas, so make sure you check the instructions and deadlines in the platform.
For homework assignments, all questions will be answered directly on Canvas, but if you have problems uploading some answers (e.g. plots, regression outputs), you will have to submit a PDF write-up.
In some questions, we will also ask for you to submit a specific line of code. All these instructions will be included in the individual assignments, so make sure you review them carefully.
You will also need to submit your R script (.R extension). This script has to contain all the code you used to complete the homework assignment in a coherent way. Review the tips below to make sure your code complies with the requirements.
Remember to cite any external references you might use. There’s no need to cite slide or content we have reviewed in class, though.
Use the template provided in each homework assignment to make it easier.
Check that you are not loading any data locally (i.e. from your own computer). All data provided is hosted online and should be accessed that way. Any changes that you make to the data have to be contained on the R script.
Make sure you are loading all required packages, and load them at the beginning of the script.
Is my script reproducible? To make sure of this, before submission, close RStudio, re-open it, and run your entire script once. Does it run without errors? Good. If it doesn’t:
i) Check whether you loaded all necessary packages ii) You are running everything in order iii) You don’t have any errors in your code
Make sure all the code is there. If there is a question for which you needed code and the chunk of code is not there, that question will not be reviewed.
Homework 1: Download
Homework 2: Download
Homework 3: Download
Homework 4: Download
Homework 5: Download