library(ggplot2)
library(dplyr)

# Prettier graphs
theme_set(theme_bw())

Question 1

Reconsider the anorexia data that we investigated in Homework 6:

anorexia <- read.csv("https://collinn.github.io/data/anorexia.txt")

Question 2

In response to several outbreaks of pertussis among newborns (in whom it is very serious and occasionally fatal), the CDC now recommends that pregnant women receive the Tdap vaccine during pregnancy. The purpose of this study was to investigate whether this new recommendation has any unintended side effects with respect to the risk of preterm birth. The average gestational period is approximately 40 weeks.

tdap <- read.delim("https://github.com/IowaBiostat/data-sets/raw/main/tdap/tdap.txt")

This dataset contains three variables: Delivery, indicating the time of delivery in weeks since inception, Vac, an indicator for whether or not a woman received the Tdap vaccine during pregnancy, and tVac, the number of weeks into the pregnancy the woman received the vaccine.

Question 3

This question will again consider the mtcars dataset built into R

data(mtcars)

We will be investigating the relationship between the weight of a car (independent variable) and its miles per gallon (dependent variable). In addition to this, we will also be using the number of carburetors as a second independent variable.