class: center, middle, inverse, title-slide # Lab 07: Logistic Regression ### 03.21.19 --- ## Agenda 1. Mid-semester survey 2. Lab introduction 3. Getting started --- ## Mid-semester survey - Take a few minutes to fill out the mid-semester survey: .center[ [http://bit.ly/sta210-midsemester-survey](http://bit.ly/sta210-midsemester-survey) ] - Your responses are anonymous. - Be sure any feedback is constructive. Positive comments are also welcome if there's something in the course that has really helped you better learn regression analysis. --- ### Lab 07: Logistic Regression <font class="vocab">Goal: </font> Create a logistic regression model to predict the probability a Spotify user will like a song <font class="vocab">Data: </font> Song characteristics from Spotify.com and like/dislike from a Spotify user - You will download the data from the lab instructions and upload it into the data folder of your project. - Links to the datasets are in the Data section of the instructions. **Use the lecture notes on logistic regression for help with coding and interpretations.** --- ## Getting started with the lab - Go to the course GitHub organization and find the **lab-06** repo that has your team name on it. - On GitHub, click on the green Clone or download button, select Use HTTPS (this might already be selected by default, and if it is, you’ll see the text Clone with HTTPS). Click on the clipboard icon to copy the repo URL. - Go to RStudio Cloud and into the course workspace. Create a New Project from Git Repo. You will need to click on the down arrow next to the New Project button to see this option. - Copy and paste the URL of your assignment repo into the dialog box and click OK. - Run the following in the console to configure Git: ```r library(usethis) use_git_config(user.name="your name", user.email="your email") ``` - **Use the email address associated with your GitHub account** --- ## Caching your password You need to cache your password on a per-project basis: - Go to the **Terminal** within a project (the most recent lab?) - Type the following to cache your password for `\(60 * 60 * 24 * 7 = 604800\)` seconds ```bash git config --global credential.helper 'cache --timeout 604800' ``` You will need to enter your GitHub username and password one more time after caching the password. After that you won't need to enter your credentials for 604800 seconds = 7 days.