Skip to content

Commit 41141d3

Browse files
committed
Update cover
1 parent be8edc8 commit 41141d3

8 files changed

+19
-19
lines changed

09-hypothesis-testing.Rmd

+16-16
Original file line numberDiff line numberDiff line change
@@ -1071,22 +1071,22 @@ bootstrap_distribution <- spotify_metal_deephouse |>
10711071
```
10721072

10731073
```{r echo=FALSE, purl=FALSE}
1074-
#if (!file.exists("rds/bootstrap_distribution_spotify.rds")) {
1075-
set.seed(16)
1076-
bootstrap_distribution <- spotify_metal_deephouse |>
1077-
specify(formula = popular_or_not ~ track_genre, success = "popular") |>
1078-
# Change 1 - Remove hypothesize():
1079-
# hypothesize(null = "independence") |>
1080-
# Change 2 - Switch type from "permute" to "bootstrap":
1081-
generate(reps = 1000, type = "bootstrap") |>
1082-
calculate(stat = "diff in props", order = c("metal", "deep-house"))
1083-
write_rds(
1084-
bootstrap_distribution,
1085-
"rds/bootstrap_distribution_spotify.rds"
1086-
)
1087-
# } else {
1088-
# bootstrap_distribution <- read_rds("rds/bootstrap_distribution_spotify.rds")
1089-
# }
1074+
if (!file.exists("rds/bootstrap_distribution_spotify.rds")) {
1075+
set.seed(16)
1076+
bootstrap_distribution <- spotify_metal_deephouse |>
1077+
specify(formula = popular_or_not ~ track_genre, success = "popular") |>
1078+
# Change 1 - Remove hypothesize():
1079+
# hypothesize(null = "independence") |>
1080+
# Change 2 - Switch type from "permute" to "bootstrap":
1081+
generate(reps = 1000, type = "bootstrap") |>
1082+
calculate(stat = "diff in props", order = c("metal", "deep-house"))
1083+
write_rds(
1084+
bootstrap_distribution,
1085+
"rds/bootstrap_distribution_spotify.rds"
1086+
)
1087+
} else {
1088+
bootstrap_distribution <- read_rds("rds/bootstrap_distribution_spotify.rds")
1089+
}
10901090
```
10911091

10921092
Using this `bootstrap_distribution`, let's first compute the percentile-based confidence intervals, as we did in Section \@ref(bootstrap-process):

_includes/analytics.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<!-- Open Graph Meta Tags -->
1111
<meta property="og:title" content="ModernDive V2" />
1212
<meta property="og:description" content="An open-source and fully-reproducible electronic textbook for teaching statistical inference using tidyverse data science tools." />
13-
<meta property="og:image" content="https://moderndive.com/v2/images/logos/v2/v2_cover_2024-10.png" />
13+
<meta property="og:image" content="https://moderndive.com/v2/images/logos/v2_cover.png" />
1414
<meta property="og:url" content="https://moderndive.com/v2/" />
1515
<meta name="twitter:card" content="summary_large_image" />
1616

images/logos/v2_Keynote.key

1.34 MB
Binary file not shown.

images/logos/v2_cover.pdf

1.27 MB
Binary file not shown.

images/logos/v2_cover.png

350 KB
Loading

index.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ always_allow_html: yes
2828
twitter-handle: ModernDive
2929
graphics: yes
3030
description: "An open-source and fully-reproducible electronic textbook for teaching statistical inference using tidyverse data science tools."
31-
cover-image: "images/logos/v2/v2_cover_2024-10.png"
31+
cover-image: "images/logos/v2_cover.png"
3232
# url: 'https\://moderndive.com/v2/'
3333
apple-touch-icon: "images/logos/favicons/apple-touch-icon.png"
3434
favicon: "images/logos/favicons/favicon.ico"
@@ -259,7 +259,7 @@ source("R/image_functions.R")
259259
dev_version <- FALSE
260260
```
261261

262-
<div class='book-cover'><img src="images/logos/v2/v2_cover_2024-10.png" width="350" alt=""/></div>
262+
<div class='book-cover'><img src="images/logos/v2_cover.png" width="350" alt=""/></div>
263263

264264
```{block, include=is_html_output(), purl=FALSE}
265265
This is the [website](https://moderndive.com/v2/) for *Statistical Inference via Data Science: A ModernDive into R and the Tidyverse (Second Edition)*! Visit the [GitHub repository for this site](https://github.com/moderndive/ModernDive_book/tree/v2/). It will be published as a print copy by CRC Press soon! You can find a summary of the updates in this version [here](https://moderndive.com/v2/preface.html#about-the-book).
0 Bytes
Binary file not shown.

rds/package_versions.rds

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)