Name:

Instructions

Simulation and plotting (18 points)

Iteration (14 points)

Data cleaning and wrangling (15 points)

nms = c("Surgery", "Age", "Hosp_ID", "Temp_Rect", "Pulse", "Resp", "Temp_Extr",
        "Pulse_Peri", "Mucous", "Cap_Time", "Pain", "Peris", "Ab_Dist", "Tube",
        "Reflux", "Reflux_PH", "Feces", "Abdomen", "Cell_Vol", "Total_Protein",
        "Ab_Appear", "Ab_Total_Prot", "Outcome", "Lesion", "Lesion_Site",
        "Lesion_Type", "Lesion_Subt", "Lesion_Code")

Data visulization and apply (12 points)

We’re going to use the same dataset (in Lab 3) from the 2016 Summer Olympics in Rio de Janeiro, taken from https://github.com/flother/rio2016 (itself put together by scraping the official Summer Olympics website for information about the athletes). Below we read in the data and store it as rio.

rio = read.csv("rio.csv")

Wage generalized additive modeling (11 points)

We need the same wage dataset that we used in Lab 11, Question 2; so load it in.