Submission Details

Due date: the homework is due before class on Thursday.

Submission process: submit both the R Markdown file and the corresponding html file on canvas. Please submit both the .Rmd and the .html files separately and do not zip the two files together.


Ames housing

  1. Download the RMarkdown file with these homework instructions to use as a template for your work. Make sure to replace “Your Name” in the YAML with your name.

  2. The Ames based, non-profit company OAITI provides aoe open-source data sets. One of these data sets consists of information on all house sales in Ames between 2008 and 2010. The following piece of code allows you to read the dataset into your R session. How many house sales were there between 2008 and 2010? Which type of variables are we dealing with?

housing <- read.csv("https://raw.githubusercontent.com/OAITI/open-datasets/master/Housing%20Data/Ames-Housing.csv")
  1. Do sales prices change over time? (Don’t test significances) Provide a graphic that supports your statement.

  2. What is the relationship between sales prices and the size of the house (living area)? Make a chart and describe the relationship.

  3. Use dplyr functions to:

  1. Draw a chart of the average sale prices by neighborhood and comment on it. Only consider neighborhoods with at least 10 sales.

    Bonus: write the code for this question and the previous one in a single statement for +0.5 point extra credit.

  2. Use dplyr functions to:

  1. Draw a chart of the previous data set. Draw side-by-side boxplots of the garage area by YBCut. Facet by the style of house. Describe and summarise the chart.

    Bonus: write the code for this question and the previous one in a single statement for +0.5 point extra credit.