Problem set 6
Due by 11:59 PM on Thursday, December 6, 2018
In this problem set, you’ll be working with data from three different sources:
- Property tax data problem set 3.
- 2016 GSS data from problem set 5. Because there are hundreds of variables, I’ve selected a handful for you with
- Data about car seat sales for a fictional company from Exam 2. See the answer key for Exam 2 on Learning Suite for a complete description of the variables in this dataset.
Additionally, you are drowning in excellent, fully worked out and heavily annotated examples of how to do all these difference in means and difference in proportion tests. I provide two examples in this problem set, but also look here for reference:
- Class 11: Hypothesis testing
- ModernDive 10: Hypothesis testing
- ModernDive 10: Inference for regression
- ModernDive appendix B: Inference examples
Setting up your project
You can copy the “Problem Set 6” project on RStudio.cloud, which has this set up for you. But remember that you really really should be off the cloud version and on your computer by now. Here are the instructions for installing everything on your computer.
Create a new RStudio project named “problem-set-6” (or whatever you want to call it) and put it somewhere on your computer.
Navigate to that new project folder on your computer with File Explorer (in Windows) or Finder (in macOS) (i.e. however you look at files on your computer).
Download this R Markdown fileYou’ll probably need to right click on the link and select “Save link as…”
and place it in your newly-created project (but not in your data folder—put it in the main directory):
Create a new folder in your problem set folder called “data”.
Download these three CSV files. They’ll probably go into your Downloads folder.You’ll probably need to right click on the link and select “Save link as…” or something similar—often browsers will load the CSV file like a web page, which isn’t helpful.
Using Windows File Explorer or macOS Finder, move the newly downloaded CSV files into the “data” folder you created.
In the end, your project folder should be structured like this:Make sure your
.Rmd file is not inside the data folder.
Completing the assignment
Ensure that you have your new
problem-set-6project open in RStudio. Open the
.Rmdfile from the “Files” panel in RStudio and follow the instructions there for the rest of the problem set. Once again, there are a couple fully worked out examples.
.Rmdas a Word documentOr PDF if you’ve installed tinytex.
when you’re done and submit it via Learning Suite.