Skip to content

Commit 8b00bd7

Browse files
committed
Edits
1 parent 8582278 commit 8b00bd7

3 files changed

+5
-5
lines changed

00-preface.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
\vspace{0.1in}
44

55
<center>
6-
`r include_image("images/logos/Rlogo.png", html_opts = "height=100px", latex_opts = "height=15%")` \hfill &emsp; &emsp; &emsp; `r include_image("images/logos/RStudio-Logo-Blue-Gradient.png", html_opts = "height=100px", latex_opts = "height=15%")`
6+
`r include_image("images/logos/Rlogo.png", html_opts = "height=100px", latex_opts = "height=12%")` \hfill &emsp; &emsp; &emsp; `r include_image("images/logos/RStudio-Logo-Blue-Gradient.png", html_opts = "height=100px", latex_opts = "height=12%")`
77
</center>
88

99
**Help! I'm completely new to coding and I need to learn R and RStudio! What do I do?**

09-hypothesis-testing.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Let's summarize the steps for hypothesis testing:
358358
4. Determine whether the result of the test is statistically significant (if the null is rejected) or non-significant (the null is not rejected).
359359

360360

361-
#### The simulation-based approach
361+
#### The simulation-based approach {-}
362362

363363
When using a simulation-based approach such as the bootstrap percentile method,
364364
we repeat the first two steps of the theory-based approach:
@@ -504,7 +504,7 @@ n_songs_genre <- n_songs / 2
504504

505505
To begin the analysis, `r n_songs` tracks were selected at random from Spotify's song archive. We will use "song" and "track" interchangeably going forward. There were `r n_songs_genre` metal tracks and `r n_songs_genre` deep house tracks selected.
506506

507-
The `moderndive` package contains the data on the songs by genre in the `spotify_by_genre` data frame. There are six genres selected in that data (`country`, `deep-house`, `dubstep`, `hip-hop`, `metal`, and `rock`). You will have the opportunity to explore relationships with the other genres and popularity in the Learning checks. Let's explore this data by focusing on just `metal` and `deep-house` by looking at 12 randomly selected rows and our columns of interest in Table \@ref(tab:twelve-spotify). Note that we also group our selection so that each of the four possible groupings of `track_genre` and `popular_or_not` are selected.
507+
The `moderndive` package contains the data on the songs by genre in the `spotify_by_genre` data frame. There are six genres selected in that data (`country`, `deep-house`, `dubstep`, `hip-hop`, `metal`, and `rock`). You will have the opportunity to explore relationships with the other genres and popularity in the *Learning checks*. Let's explore this data by focusing on just `metal` and `deep-house` by looking at 12 randomly selected rows and our columns of interest in Table \@ref(tab:twelve-spotify). Note that we also group our selection so that each of the four possible groupings of `track_genre` and `popular_or_not` are selected.
508508

509509
```{r echo=FALSE}
510510
set.seed(2)

10-inference-for-regression.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ if (!file.exists("images/boot_mlr_viz.png")) {
24332433
}
24342434
```
24352435

2436-
```{r boot-distn-slopes, echo=FALSE, out.width="70%", fig.height=12, fig.cap="Bootstrap distributions of partial slopes."}
2436+
```{r boot-distn-slopes, echo=FALSE, out.width="68%", fig.height=12, fig.cap="Bootstrap distributions of partial slopes."}
24372437
if(is_latex_output()) {
24382438
knitr::include_graphics("images/boot_mlr_viz.png")
24392439
} else {
@@ -2508,7 +2508,7 @@ mlr_pvalue_viz <- visualize(null_distribution_mlr) +
25082508
#}
25092509
```
25102510

2511-
```{r shaded-p-values-partial, echo=FALSE, out.width="85%", fig.height=12, fig.cap="Shaded p-values for the partial slopes in this multiple regression."}
2511+
```{r shaded-p-values-partial, echo=FALSE, out.width="55%", fig.height=12, fig.cap="Shaded p-values for the partial slopes in this multiple regression."}
25122512
if(is_latex_output()) {
25132513
knitr::include_graphics("images/mlr_pvalue_viz.png")
25142514
} else {

0 commit comments

Comments
 (0)