-
Notifications
You must be signed in to change notification settings - Fork 0
/
aula11.qmd
57 lines (44 loc) · 853 Bytes
/
aula11.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: "AULA 11"
author: "ARLAM"
format: html
---
## Anova fatorial
```{r}
#| warning: false
#| message: false
library(tidyverse)
library(readxl)
fungicida_vaso<-read_excel("C:dados-diversos.xlsx", "fungicida_vaso")
m1<- fungicida_vaso |>
mutate(inc=dis_sp/n_sp*100)
```
```{r}
m1 |>
ggplot(aes(x=treat, y=inc))+
geom_jitter(width = 0.1)+facet_wrap(~dose)
```
```{r}
m1<-aov(log(inc+0.5)~treat*dose,
data=m1)
summary(m1)
library(performance)
check_normality(m1)
check_heteroscedasticity(m1)
library(DHARMa)
plot(simulateResiduals(m1))
```
```{r}
milho3<-read_excel("C:dados-diversos.xlsx", "milho")
m4<-aov(yield~hybrid,
data = milho3)
summary(m4)
```
```{r}
library(agridat)
data(cochran.beets)
dat = cochran.beets
# P has strong effect
libs(lattice)
xyplot(yield ~ plants|fert, dat, main="cochran.beets")
```