class: center, middle, inverse, title-slide # Lab 06 ## Modeling Course Evaluations ### Shawn Santo ### 02-28-20 --- ## Getting started 1. Go to our GitHub course organization page: https://github.com/sta199-sp20-001 2. Once you are logged in to GitHub you should see a repo named `lab06-[team_name]`. This is a private team repository that has been created for you and your team members. 3. Each person on the team should now clone the repository into RStudio Cloud. 4. Configure git. 5. Cache your password. <br/><br/> **Lab 06 is due Friday, Mar 6 at 11:59pm** --- ## Points of emphasis - In addition to `lm()`, `c()`, and `factor()`, your code should only contain functions from the loaded R packages below unless explicitly stated in an Exercise. ```r library(tidyverse) library(broom) ``` - Create meaningful object (variable) names. Don't name every model `lm1`. - Keep a single space around all operators and after commas. - Break lines after the `+` operator when adding `ggplot2` layers and after the ` %>% ` operator when using a sequence of `dplyr` functions. - Keep narrative and code within 80 characters. Set the margin by going to `Tools -> Global Options -> Code -> Display -> Check "Show Margin"` --- ## Common `broom` functions | Function | Description | |-------------|-------------------------------------------------------------------------------------| | `tidy()` | Turn a linear model object of results into a tidy tibble | | `glance()` | A single row tibble summary of model fit: `\(R^2\)`, adjusted `\(R^2\)`, AIC, BIC, and more | | `augment()` | A tibble of fitted and residual values; function also permits predictions | --- ## Submission - One submission per group. - Make sure you select all your group members in Gradescope upon submission. - Make sure your team name and all team member names are included in the YAML of your Rmd file.