Skip to content

Commit

Permalink
broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
dalejbarr committed Oct 17, 2023
1 parent 021569e commit beaef48
Show file tree
Hide file tree
Showing 29 changed files with 368 additions and 369 deletions.
2 changes: 1 addition & 1 deletion 04-interactions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ Note that the $Y$ variable with the dots in the subscripts are means of $Y$, tak

![](images/04-interactions_factorial_app.png)

[Launch this web application](https://shiny.psy.gla.ac.uk/Dale/factorial2){target="_blank"} and experiment with factorial designs until you understand the key concepts of main effects and interactions in a factorial design.
[Launch this web application](https://rstudio-connect.psy.gla.ac.uk/factorial){target="_blank"} and experiment with factorial designs until you understand the key concepts of main effects and interactions in a factorial design.

## Code your own categorical predictors in factorial designs

Expand Down
2 changes: 1 addition & 1 deletion docs/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ dat
## 8 parent 517.
## 9 parent 481.
## 10 parent 549.
## # … with 90 more rows
## # 90 more rows
```

Here are some things to try with this simulated data.
Expand Down
32 changes: 16 additions & 16 deletions docs/02-correlation-regression.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ starwars %>%
```

```
## Correlation computed with
## • Method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
##
## Correlation method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
```

```
Expand All @@ -69,9 +69,9 @@ starwars %>%
```

```
## Correlation computed with
## • Method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
##
## Correlation method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
```

```
Expand All @@ -95,9 +95,9 @@ starwars %>%
```

```
## Correlation computed with
## • Method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
##
## Correlation method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
```

```
Expand Down Expand Up @@ -193,9 +193,9 @@ starwars3 %>%
```

```
## Correlation computed with
## • Method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
##
## Correlation method: 'pearson'
## Missing treated using: 'pairwise.complete.obs'
```

```
Expand All @@ -219,9 +219,9 @@ starwars %>%
```

```
## Correlation computed with
## • Method: 'spearman'
## Missing treated using: 'pairwise.complete.obs'
##
## Correlation method: 'spearman'
## Missing treated using: 'pairwise.complete.obs'
```

```
Expand Down Expand Up @@ -283,7 +283,7 @@ It should be clear that you can't just run `rnorm()` twice and combine the varia
The package **`MASS`** provides a function `mvrnorm()` which is the 'multivariate' version of rnorm (hence the function name, `mv` + `rnorm`, which makes it easy to remember.

<div class="watchout">
<p>The <strong><code>MASS</code></strong> package comes pre-installed with R. But the only function you'll probably ever want to use from <strong><code>MASS</code></strong> is <code>mvrnorm()</code>, so rather than load in the package using <code>library("MASS")</code>, it is preferable to use <code>MASS::mvrnorm()</code>, especially as <strong><code>MASS</code></strong> and the <strong><code>dplyr</code></strong> package from <strong><code>tidyverse</code></strong> don't play well together, due to both packages having the function <code>select()</code>. So if you load in <strong><code>MASS</code></strong> after you load in <strong><code>tidyverse</code></strong>, you'll end up getting the <strong><code>MASS</code></strong> version of <code>select()</code> instead of the <strong><code>dplyr</code></strong> version. It will do your head in trying to figure out what is wrong with your code, so always use <code>MASS::mvrnorm()</code> without loading <code>library("MASS")</code>.</p>
<p>The <strong><code>MASS</code></strong> package comes pre-installed with R. But the only function youll probably ever want to use from <strong><code>MASS</code></strong> is <code>mvrnorm()</code>, so rather than load in the package using <code>library("MASS")</code>, it is preferable to use <code>MASS::mvrnorm()</code>, especially as <strong><code>MASS</code></strong> and the <strong><code>dplyr</code></strong> package from <strong><code>tidyverse</code></strong> dont play well together, due to both packages having the function <code>select()</code>. So if you load in <strong><code>MASS</code></strong> after you load in <strong><code>tidyverse</code></strong>, youll end up getting the <strong><code>MASS</code></strong> version of <code>select()</code> instead of the <strong><code>dplyr</code></strong> version. It will do your head in trying to figure out what is wrong with your code, so always use <code>MASS::mvrnorm()</code> without loading <code>library("MASS")</code>.</p>
<blockquote class="twitter-tweet">
<p lang="en" dir="ltr">
MASS before dplyr, clashes not dire;<br>dplyr before MASS, pain in the ass. <a href="https://twitter.com/hashtag/rstats?src=hash&amp;ref_src=twsrc%5Etfw">#rstats</a> <a href="http://t.co/vHIbGwSKd8">pic.twitter.com/vHIbGwSKd8</a>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit beaef48

Please sign in to comment.