Lecture 10
Duke University
STA 113 - Fall 2023
HW 3 due next Thursday, to be posted later today
Due dates for the rest of the semester posted
Plans for next week
Any questions before we dive into the rest of the semester?
mpg
datasetRows: 234
Columns: 11
$ manufacturer <chr> "audi", "audi", "audi", "audi", "audi", "audi", "audi", "…
$ model <chr> "a4", "a4", "a4", "a4", "a4", "a4", "a4", "a4 quattro", "…
$ displ <dbl> 1.8, 1.8, 2.0, 2.0, 2.8, 2.8, 3.1, 1.8, 1.8, 2.0, 2.0, 2.…
$ year <int> 1999, 1999, 2008, 2008, 1999, 1999, 2008, 1999, 1999, 200…
$ cyl <int> 4, 4, 4, 4, 6, 6, 6, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 8, 8, …
$ trans <chr> "auto(l5)", "manual(m5)", "manual(m6)", "auto(av)", "auto…
$ drv <chr> "f", "f", "f", "f", "f", "f", "f", "4", "4", "4", "4", "4…
$ cty <int> 18, 21, 20, 21, 16, 18, 18, 18, 16, 20, 19, 15, 17, 17, 1…
$ hwy <int> 29, 29, 31, 30, 26, 26, 27, 26, 25, 28, 27, 25, 25, 25, 2…
$ fl <chr> "p", "p", "p", "p", "p", "p", "p", "p", "p", "p", "p", "p…
$ class <chr> "compact", "compact", "compact", "compact", "compact", "c…
What type of plot would you use to visualize the relationship between two categorical variables?
What type of plot would you use to visualize the relationship between one numerical and one categorical variables?
What type of plot would you use to visualize the relationship between two numerical variables?
Roughly how many points are there in the plot? How many points are there supposed to be? If there is a discrepancy, what explains it?
cty | hwy |
---|---|
18 | 29 |
21 | 29 |
20 | 31 |
21 | 30 |
16 | 26 |
18 | 26 |
... | ... |
cty | hwy |
---|---|
18 | 29 |
21 | 29 |
20 | 31 |
21 | 30 |
16 | 26 |
18 | 26 |
... | ... |
Are you good at guessing correlation?
STA 101
on the list, and reserve a containerYou will authenticate GitHub using SSH. Below are an outline of the authentication steps.
You only need to do this authentication process one time on a single system.
credentials::ssh_setup_github()
into your console.You can find more detailed instructions here if you’re interested.
Type the following lines of code in the console in RStudio filling in your name and the email address associated with your GitHub account.
For example, mine would be
You are now ready interact with GitHub via RStudio on the Duke Containers!
ae-09
ae-09-fish
(repo name will be suffixed with your GitHub name).