-
Notifications
You must be signed in to change notification settings - Fork 0
/
anova_tukey.R
57 lines (44 loc) · 1.74 KB
/
anova_tukey.R
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
# PACOTES ----
pacotes <- c("agricolae","ExpDes.pt", "ggplot2")
if(sum(as.numeric(!pacotes %in% installed.packages())) != 0){
instalador <- pacotes[!pacotes %in% installed.packages()]
for(i in 1:length(instalador)) {
install.packages(instalador, dependencies = T)
break()}
sapply(pacotes, require, character = T)
} else {
sapply(pacotes, require, character = T)
}
# Flexão ------
dados <- read.table("mecanica_diego.txt", header=TRUE)
attach(dados)
#MOE PARALELO
dic(id,moe_par, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#MOR PARALELO
dic(id,mor_par, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#MOE PERPENDICULAR
dic(id,moe_per, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#MOR PERPENDICULAR
dic(id,mor_per, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
# Física ----
dados2 <- read.table("fisica_diego.txt", header=TRUE)
attach(dados2) ## SE APARECER MENSAGEM DE ERRO APLICAR FUNÇÃO 'detach()'
#LIGAÇÃO INTERNA
dic(id,li, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#AA2H
dic(id,aa2, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#AA24H
dic(id,aa24, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#IE2H
dic(id,ie2, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)
#IE24h
dic(id,ie24, quali = TRUE, nl = FALSE,
mcomp ="tukey", hvar = "bartlett",sigT = 0.05,sigF = 0.05)