Documentos de Académico
Documentos de Profesional
Documentos de Cultura
attach(datos)
TRC<- factor(Formulaciones)
FILA<-factor(Lote)
COL<-factor(Operadores)
Resp1<-as.numeric(as.vector(Combustion))
DCL.lm <- lm(Resp1 ~ TRC + FILA + COL)
anova(DCL.lm)
##
## Lilliefors (Kolmogorov-Smirnov) normality test
##
## data: residuals(DCL.lm)
## D = 0.18, p-value = 0.03581
shapiro.test(residuals(DCL.lm))
##
## Shapiro-Wilk normality test
##
## data: residuals(DCL.lm)
## W = 0.92239, p-value = 0.05811
#Independencia
library(zoo)
##
## Attaching package: 'zoo'
library(lmtest)
dwtest(DCL.lm)
##
## Durbin-Watson test
##
## data: DCL.lm
## DW = 2.2734, p-value = 0.4906
## alternative hypothesis: true autocorrelation is greater than 0
#Comparacion de medias
library(agricolae)
#Método de la diferencia mínima significativa, Least Significant
Difference (LSD)
Grupos<- LSD.test(y = DCL.lm, trt = "TRC", group = T, console = T)
##
## Study: DCL.lm ~ "TRC"
##
## LSD t Test for Resp1
##
## Mean Square Error: 10.66667
##
## TRC, means and individual ( 95 %) CI
##
## Resp1 std r LCL UCL Min Max
## A 28.6 4.669047 5 25.41764 31.78236 24 36
## B 20.2 2.167948 5 17.01764 23.38236 17 23
## C 22.4 4.393177 5 19.21764 25.58236 18 29
## D 29.8 5.403702 5 26.61764 32.98236 24 38
## E 26.0 3.391165 5 22.81764 29.18236 22 31
##
## Alpha: 0.05 ; DF Error: 12
## Critical Value of t: 2.178813
##
## least Significant Difference: 4.500536
##
## Treatments with the same letter are not significantly different.
##
## Resp1 groups
## D 29.8 a
## A 28.6 a
## E 26.0 ab
## C 22.4 bc
## B 20.2 c
##
## Study: DCL.lm ~ "TRC"
##
## LSD t Test for Resp1
##
## Mean Square Error: 10.66667
##
## TRC, means and individual ( 95 %) CI
##
## Resp1 std r LCL UCL Min Max
## A 28.6 4.669047 5 25.41764 31.78236 24 36
## B 20.2 2.167948 5 17.01764 23.38236 17 23
## C 22.4 4.393177 5 19.21764 25.58236 18 29
## D 29.8 5.403702 5 26.61764 32.98236 24 38
## E 26.0 3.391165 5 22.81764 29.18236 22 31
##
## Alpha: 0.05 ; DF Error: 12
## Critical Value of t: 2.178813
##
## Comparison between treatments means
##
## difference pvalue signif. LCL UCL
## A - B 8.4 0.0016 ** 3.8994636 12.9005364
## A - C 6.2 0.0110 * 1.6994636 10.7005364
## A - D -1.2 0.5720 -5.7005364 3.3005364
## A - E 2.6 0.2321 -1.9005364 7.1005364
## B - C -2.2 0.3078 -6.7005364 2.3005364
## B - D -9.6 0.0006 *** -14.1005364 -5.0994636
## B - E -5.8 0.0158 * -10.3005364 -1.2994636
## C - D -7.4 0.0038 ** -11.9005364 -2.8994636
## C - E -3.6 0.1069 -8.1005364 0.9005364
## D - E 3.8 0.0907 . -0.7005364 8.3005364
#Prueba de Tukey
outHSD<-HSD.test(DCL.lm, "TRC",console=TRUE)
##
## Study: DCL.lm ~ "TRC"
##
## HSD Test for Resp1
##
## Mean Square Error: 10.66667
##
## TRC, means
##
## Resp1 std r Min Max
## A 28.6 4.669047 5 24 36
## B 20.2 2.167948 5 17 23
## C 22.4 4.393177 5 18 29
## D 29.8 5.403702 5 24 38
## E 26.0 3.391165 5 22 31
##
## Alpha: 0.05 ; DF Error: 12
## Critical Value of Studentized Range: 4.50771
##
## Minimun Significant Difference: 6.583932
##
## Treatments with the same letter are not significantly different.
##
## Resp1 groups
## D 29.8 a
## A 28.6 ab
## E 26.0 abc
## C 22.4 bc
## B 20.2 c