Site is moving! This is archived version. Visit new site @ https://jsgosnell.github.io/cuny_biostats_website/
BG: 5.4 – 5.5; NRB 7
Background Reading (BG = A Biologist’s Guide to Statistical Thinking and Analysis; NRB = Natural Resource Biometrics; OSE: Online Statistics Education; (All other texts found under Background Material tab)
Download file by clicking here or view and download in the Github Repository @ https://github.com/jsgosnell/CUNY-BioStats/blob/master/lecture_files/9_Regression_and_correlation.R . You can download a single file by clicking raw; on the next page right-click the screen, select "Save as", and save the resulting .txt file (same as a .R script).
Swirl is an R package that provides guided lessons to guide you through (and review) the tests we are learning. These lessons should serve as a bridge between all the code provided above and the key functions and concepts from each lecture set. Swirl lessons are noted in the page for each lecture. A full course lesson (all lessons combined) can also be downloaded using the following instructions.
install the "swirl" package
run the following code once on the computer to install a new course
library(swirl)
install_course_github("jsgosnell", "JSG_swirl_lessons")
start swirl!
swirl()
then follow the on-screen prompts to select the lessons you want
Here we will focus on the lessons on regression and correlation
TIP: If you are seeing duplicate courses (or odd versions of each), you can clear all courses and then re-download the courses by
exit swirl using escape key or bye() function
uninstall_all_courses()
then reinstall courses as needed
when you restart swirl with swirl(), you may need to select
2. No. Let me start something new
The link above will take you to a github file showing the assignment. You can make a copy of the repository it's in to complete the assignment. This is also what the link you receive via github classroom will accomplish.