Skip to content

Commit

Permalink
autorun for slide 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emitanaka committed Sep 20, 2024
1 parent 74c18d8 commit 701da54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions slides/slide2.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ tibble(trts3) %>%

```{webr-r}
#| echo: true
#| autorun: true
library(edibble)
trt_str <- set_trts(fertilizer = c("A", "B"),
water = c("irrigate", "rainfed"))
Expand All @@ -757,6 +758,7 @@ des1
- Design anatomy shows the breakdown of degrees of freedom across different sources of variation (related to _skeleton ANOVA_)

```{webr-r}
#| autorun: true
design_anatomy(des3)
```

Expand All @@ -765,6 +767,7 @@ design_anatomy(des3)
- The example below has no degrees of freedom for the residual source of variation

```{webr-r}
#| autorun: true
library(edibble)
des_invalid <- design("Invalid design") |>
set_units(pen = 2,
Expand All @@ -781,7 +784,7 @@ design_anatomy(des_invalid)

## Summary

::: incremental


- Remember the basic design principles: controls, replication, blocking, and randomisaton.
- Use blinding where applicable to reduce experimental bias.
Expand All @@ -791,5 +794,3 @@ design_anatomy(des_invalid)
- Watch out for pseudoreplication!
- Randomise using a computer program if possible.
- Produce a design anatomy to see the spread of the degrees of freedom across sources of variation.

:::

0 comments on commit 701da54

Please sign in to comment.