-
Notifications
You must be signed in to change notification settings - Fork 1
/
L26-Exercises.qmd
40 lines (28 loc) · 1.06 KB
/
L26-Exercises.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Exercises
::: {.callout-note collapse="true"}
`r this_exercise(ID="DRAFT-Q32-4")`
{{< include ../LSTexercises/Lesson-32/Q32-4.Rmd >}}
:::
::: {.callout-note collapse="true"}
`r this_exercise(ID="Q32-5")`
{{< include ../LSTexercises/Lesson-32/Q32-5.Rmd >}}
:::
::: {.callout-note collapse="true"}
`r this_exercise(ID="Q16-101")`
{{< include ../LSTexercises/26-Experiment/Q26-101.Rmd >}}
:::
## Additional topics
::: {.callout-note collapse="true"}
## Blocking
FOR EXERCISES ON BLOCKING, USE `block_by()` on real data (the background characteristics of the experimental subjects), then show that the groupwise stats are more even than they would be if pure random assignment were used.
Also, use sorting to show how quantitative variables and categorical variables are split up by block. YOU'LL Never have more than two in a row of treatment and control.
```{r}
Foo <- mtcars |>
mutate(blocks = block_by(wt))
```
:::
## Short projects
::: {.callout-note collapse="true"}
`r this_exercise(ID="Q32-6", type = "Project")`
{{< include ../LSTexercises/Lesson-32/Q32-6.Rmd >}}
:::