Vous êtes sur la page 1sur 2

>pokmno2<-c(14.1,9.4,9.3,10.9,6.

3); pokmno2
>po<-c(10.0,7.1,14.2,14.8,18.9); po pérdida de peso
>saco<-c(18.3,17.5,14.9,16.2,23.1); saco
>nada<-c(21.0,18.0,17.3,16.8,21.9); nada
>resp<- c(pokmno2, po, saco, nada); resp

20
>repet<-c(1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5)
>tapply(resp,trat,summary)
$pokmno2

resp

15
Min. 1st Qu. Median Mean 3rd Qu. Max.
6.3 9.3 9.4 10.0 10.9 14.1
$po
Min. 1st Qu. Median Mean 3rd Qu. Max.

10
7.1 10.0 14.2 13.0 14.8 18.9
$saco
Min. 1st Qu. Median Mean 3rd Qu. Max.
14.9 16.2 17.5 18.0 18.3 23.1 t1 t2 t3 t4
$nada trat
Min. 1st Qu. Median Mean 3rd Qu. Max.
16.8 17.3 18.0 19.0 21.0 21.
>tapply(resp,trat,var) pérdida de peso

pokmno2 po saco nada

t4
8.040 20.825 9.800 5.28
>tapply(resp,trat,t.test)
$`t1`

t3
One Sample t-test
data: X[[i]]
t = 7.886, df = 4, p-value = 0.001398
alternative hypothesis: true mean is not equal to 0

t2
95 percent confidence interval:
6.479275 13.520725
sample estimates:
mean of x
t1
10
10 15 20
$t2
One Sample t-test resp
data: X[[i]]
t = 6.3699, df = 4, p-value = 0.003115
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
7.333739 18.666261
sample estimates:
mean of x
13
$t3
One Sample t-test
data: X[[i]]
t = 12.857, df = 4, p-value = 0.000211
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
14.11298 21.88702
sample estimates:
mean of x
18
$t4
One Sample t-test
data: X[[i]]
t = 18.481, df = 4, p-value = 5.045e-05
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
16.14552 21.85448
sample estimates:
mean of x
19
>shapiro.test(resp)
Shapiro-Wilk normality test
data: resp
W = 0.9613, p-value = 0.5704
>bartlett.test(resp~trat)
Bartlett test of homogeneity of variances
data: resp by trat
Bartlett's K-squared = 1.8809, df = 3, p-value = 0.5975
>plot(resp ~ trat, col=2:5, main ="perdida de peso")
>stripchart(resp ~ trat, col=2:5, main ="perdida de peso")
> hist(resp)
>summary(resp)
>t.test(resp)
>shapiro.test(resp)

Vous aimerez peut-être aussi