00:01
For this problem, i'll show how we go through and do the one -way anova using r.
00:06
So to begin, we'll want to define our data.
00:10
So i'll say, uh, just a, group a, gets the vector.
00:16
So let's see here, i'm assuming with the way that this is formatted, that it would be 145 is the first measurement for fertilizer a, then 162 is the first for b, and 152 is the first for c.
00:27
So the next measurements would be 139, 141, 142, and 143.
00:35
Then for b, let's see here, we would have 162, then skip to 155, skip 3, 154, then 151, and 152.
01:02
And then for c, we have 152, 149, then 153, then 150, then 151.
01:19
Pardon me, i know that took a second.
01:21
Hopefully i've interpreted the data correctly there.
01:23
If not, then the focus here should be on the procedure anyways.
01:27
Then what we want to do is combine the data into a data frame.
01:34
So i'll just call it df for data frame, is data .frame, response, response equals c, a, b, c, then group to assign our values for the group.
01:54
We can write this as equals factor rep c, then we have fertilizer a, fertilizer b, fertilizer c.
02:18
And we'd want to repeat each, let's see here, how many measurements do we have for each? we have five for each...