Derek Corcoran
"11/04, 2018"
Volvamos a lo básico
Probabilidad de un 6
p_dado6 <- 1/6
p_dado6 <- 1/6
\[ p(6) + p(1,5) = 1 \]
p_dadoNo6 <- (1 - 1/6)
p_dadoNo6 <- (1 - 1/6)
\[ (1-p(A))^n \]
\[ 1 - (1-p(A))^n \]
p_dado6 <- 1/6
Considerando la ecuación 6, ¿cual es la probabilidad de que al hacer 6 comparaciones independientes podamos cometer un error de tipo 1?
p_error <- 0.05
pairwise.t.test
con los argumentos:summary(aov(Ozone ~ Month, data = airquality))
Df Sum Sq Mean Sq F value Pr(>F)
Month 1 3387 3387 3.171 0.0776 .
Residuals 114 121756 1068
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
37 observations deleted due to missingness
pairwise.t.test(x = airquality$Ozone, g = airquality$Month, p.adj = "none")
Pairwise comparisons using t tests with pooled SD
data: airquality$Ozone and airquality$Month
5 6 7 8
6 0.60877 - - -
7 2.9e-05 0.01023 - -
8 1.9e-05 0.00831 0.91744 -
9 0.32545 0.85838 0.00070 0.00048
P value adjustment method: none
summary(aov(Resp ~ Var1 + Var2 + Var1:Var2, data = Varpar))
Df Sum Sq Mean Sq F value Pr(>F)
Var1 2 3037.2 1518.6 379.589 <2e-16 ***
Var2 1 2205.0 2205.0 551.168 <2e-16 ***
Var1:Var2 2 1.6 0.8 0.203 0.816
Residuals 174 696.1 4.0
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1