Skip to content

Commit

Permalink
bits and bobs
Browse files Browse the repository at this point in the history
  • Loading branch information
3mmaRand committed Feb 16, 2024
1 parent 0dcf4f3 commit 271d4ad
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion r4babs2/week-1/data-raw/beewing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wing
wing_mm
3.6
3.7
3.8
Expand Down
10 changes: 5 additions & 5 deletions r4babs2/week-1/workshop.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ Where 1.96 is the quantile for 95% confidence.
#---CODING ANSWER---
bee <- read_table("data-raw/beewing.txt")
str(bee)
beewing <- read_table("data-raw/beewing.txt")
str(beewing)
```

![](images/do_in_R.png) Calculate and assign to variables: the mean, standard deviation and standard error:

```{r}
# mean
m <- mean(bee$wing)
m <- mean(beewing$wing_mm)
# standard deviation
sd <- sd(bee$wing)
sd <- sd(beewing$wing_mm)
# sample size (needed for the se)
n <- length(bee$wing)
n <- length(beewing$wing_mm)
# standard error
se <- sd / sqrt(n)
Expand Down
2 changes: 1 addition & 1 deletion r4babs2/week-4/overview.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ toc-location: right

---

Last week you learnt how to use and interpret the general linear model when the *x* variable was categorical with two groups. You will now extend that to situations when there are more than two groups. This is often known as the one-way ANOVA (**an**alysis **o**f **var**iance). You will also learn about the Kruskal- Wallis test which can be used when the assumptions of the general linear model are not met.
Last week you learnt how to use and interpret the general linear model when the *x* variable was categorical with two groups. You will now extend that to situations when there are more than two groups. This is often known as the one-way ANOVA (**an**alysis **o**f **var**iance). You will also learn about the Kruskal-Wallis test which can be used when the assumptions of the general linear model are not met.

### Learning objectives

Expand Down
4 changes: 2 additions & 2 deletions r4babs4/week-1/workshop.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ of the work.

## Load packages

We need XXXX packages for this workshop:
We need the following packages for this workshop:

- **`tidyverse`** [@tidyverse]: importing the meta data which is in a
text file, working with the data once it is in a dataframe to
filter, summarise and plot.

🎬 Load **`tidyverse`**,**`xxxxxx`** and **`xxxxx`**
🎬 Load **`tidyverse`**

```{r}
library(tidyverse)
Expand Down
11 changes: 3 additions & 8 deletions r4babs4/week-4/study_after_workshop.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Independent Study to consolidate this week"
subtitle: "DA 3 Immunobiology"
subtitle: "Data Analysis 3: Immunobiology - Your data analysis"
toc: true
toc-location: right
format:
Expand All @@ -9,14 +9,9 @@ format:
code-summary: "Answer - don't look until you have tried!"
---

# Set up

If you have just opened RStudio you will want to load the **`tidyverse`** package

```{r}
#| code-fold: false
library(tidyverse)
```

# Exercises

🎬 Go through week 1 Core workshop.

4 changes: 2 additions & 2 deletions r4babs4/week-4/study_before_workshop.qmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "Independent Study to prepare for workshop"
subtitle: "DA 3 Immunobiology"
subtitle: "Data Analysis 3: Immunobiology - Your data analysis"
toc: true
toc-location: right
---

1. Prepare

i. 📖 Read
i. 📖 Review the [Workshop in Week 2](../week-2/workshop.html) and try to apply the workflow to your own data so that you can identify problems and be ready to ask questions.


2 changes: 1 addition & 1 deletion r4babs4/week-4/workshop.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Workshop"
subtitle: "DA 3 Immunobiology"
subtitle: "Data Analysis 3: Immunobiology - Your data analysis"
toc: true
toc-location: right
editor:
Expand Down

0 comments on commit 271d4ad

Please sign in to comment.