Skip to content

Commit 328e376

Browse files
first model
1 parent 0e391d3 commit 328e376

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

25-WiSe/FAU/20260223_25.qmd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,26 @@ Either use the button "import dataset" or use the `read.csv` command.
2929
penguins <- read.csv("~/Downloads/penguins.csv")
3030
```
3131

32+
33+
34+
# Simple model: `y ~ b`
35+
36+
"Y as a function of of a binary input variable (two groups)".
37+
38+
> Is the weight of a penguin a function of the sex of the animal?
39+
40+
Add a code chunk by hitting the button or by typing "Ctr+Alt+I":
41+
42+
43+
44+
```{r}
45+
lm(body_mass_g ~ sex, data = d)
46+
```
47+
48+
49+
```{r}
50+
library(tidyverse)
51+
d |>
52+
count(sex)
53+
```
54+

0 commit comments

Comments
 (0)