Intrucciones

A continuación se muestran las variables utilizadas en el ejercicio.

a=(c(28,26,31,21,21,32,24,26,28,30,26,23,20,28,33,28,33,23,27,31,28,29,34,32,33))
b=(c(22,29,24,24,23,23,25,23,33,28,31,23,28,28,26,30,30,28,22,19,29,18,31,28,27))
c=(c(23,26,29,28,25,19,22,27,33,22,22,22,15,19,24,25,20,25,34,21,23,18,26,26,23))
d=(c(28,28,25,25,25,30,27,28,29,28,25,28,27,28,30,25,28,28,28,30,27,25,25,28,30))
e=(c(28,27,28,25,27,28,25,27,29,27,25,25,29,29,29,28,28,25,27,28,28,25,29,25,27))
f=(c(25,28,27,29,27,25,25,25,25,27,27,28,28,25,27,27,25,25,27,28,25,28,29,25,27))

Graficos de normalidad

You can also embed plots, for example:

qqnorm(a)#Grafica Q-Q 
qqline(a,col=2)

xb=mean(a)#Histograma
s=sd(a)
hist(a, freq = F, col = "blue", xlab = "Balance", main = "",
     xlim = c(xb-4*s, xb+4*s), ylim = c(0, .055), )

curve(dnorm(x, mean = xb, sd = s), col = 2, lwd = 2, add = TRUE)

A continuación se muestran las pruebas formales

shapiro.test(a)
## 
##  Shapiro-Wilk normality test
## 
## data:  a
## W = 0.94766, p-value = 0.2219
ad.test(a)
## 
##  Anderson-Darling normality test
## 
## data:  a
## A = 0.40996, p-value = 0.3188
lillie.test(a)
## 
##  Lilliefors (Kolmogorov-Smirnov) normality test
## 
## data:  a
## D = 0.11939, p-value = 0.4738

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.