class: center, middle, inverse, title-slide # Lab 03: Simple Linear Regression ### 2019-09-12 --- layout: true <div class="my-footer"> <span> Dr. Lucy D'Agostino McGowan </span> </div> --- # Agenda * **Lab introduction:** Review FiveThirtyEight article on candy rankings. * **Tips:** Review some common mistakes * **Lab 03:** on your own --- ## Lab introduction - Lab instructions posted on the course website under `</>` + Let's go find today's lab! + [bit.ly/sta-212-f19](https://bit.ly/sta-212-f19) - ["The Ultimate Halloween Candy Power Ranking"](https://fivethirtyeight.com/features/the-ultimate-halloween-candy-power-ranking/) --- ## Tips - Don't forget to change your name in the `yaml` - Be ready to troubleshoot your document, since it will likely fail to knit on multiple occasions throughout the process. Read the error message carefully and take note of which line is preventing a successful knit. - Make sure to keep track of your various chunks and to keep text and code in the right place. - Remember that your R Markdown file is not aware of your project's global environment and can only make use of variables, functions, etc. that you have loaded or defined in the document. - Remind yourself how the pipe operator (`%>%`) works. - If you're unsure how a function works or what its arguments are, simply type `?` in front of it and hit enter (`?read_csv` for instance). The "Help" tab will open and provide a summary of the function as well as some examples. - Make sure to label your plots!