Publications by Author Name
Document
library(tidyverse) library(openintro) library(infer) Exercise 1 Describe the distribution of responses in this sample. How does it compare to the distribution of responses in the population. Hint: Although the sample_n function takes a random sample of observations (i.e. rows) from the dataset, you can still refer to the variables in the dataset ...
4136 sym 1 img
Document
library(tidyverse) library(openintro) head(fastfood) ## # A tibble: 6 × 17 ## restaur…¹ item calor…² cal_fat total…³ sat_fat trans…⁴ chole…⁵ sodium total…⁶ ## <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 Mcdonalds Arti… 380 60 7 2 0 95 1110 44...
8386 sym 10 img
Document
library(tidyverse) library(openintro) Exercise 1 The width of each bin are different. data("nycflights") ggplot(data = nycflights, aes(x = dep_delay)) + geom_histogram() ## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. ggplot(data = nycflights, aes(x = dep_delay)) + geom_histogram(binwidth = 15) ggplot(data = nycflight...
5782 sym 7 img
Document
library(tidyverse) library(openintro) arbuthnot ## # A tibble: 82 × 3 ## year boys girls ## <int> <int> <int> ## 1 1629 5218 4683 ## 2 1630 4858 4457 ## 3 1631 4422 4102 ## 4 1632 4994 4590 ## 5 1633 5158 4839 ## 6 1634 5035 4820 ## 7 1635 5106 4928 ## 8 1636 4917 4605 ## 9 1637 4703 4457 ## 10 1638 ...
2208 sym 3 img
Publish Document
library(tidyverse) library(openintro) arbuthnot ## # A tibble: 82 × 3 ## year boys girls ## <int> <int> <int> ## 1 1629 5218 4683 ## 2 1630 4858 4457 ## 3 1631 4422 4102 ## 4 1632 4994 4590 ## 5 1633 5158 4839 ## 6 1634 5035 4820 ## 7 1635 5106 4928 ## 8 1636 4917 4605 ## 9 1637 4703 4457 ## 10 1638 ...
2208 sym 3 img
Lab1
library(tidyverse) library(openintro) Exercise 1 arbuthnot$girls ## [1] 4683 4457 4102 4590 4839 4820 4928 4605 4457 4952 4784 5332 5200 4910 4617 ## [16] 3997 3919 3395 3536 3181 2746 2722 2840 2908 2959 3179 3349 3382 3289 3013 ## [31] 2781 3247 4107 4803 4881 5681 4858 4319 5322 5560 5829 5719 6061 6120 5822 ## [46] 5738 5717 5847 6203 6033 ...
2732 sym 4 img