Professional Documents
Culture Documents
99)
> T2<-c(1.19,0.91,1.15,1.05)
> T3<-c(1.10,1.18,1.14,1.34)
> T4<-c(1.07,1.25,0.85,1.23)
> T5<-c(1.03,1.40,0.97,1.20)
> T6<-c(1.03,1.12,1.17,1.36)
> mean(T1,T2,T3,T4,T5,T6)
> t.test(T1,mu=1.13)
data: T1
0.8483034 1.4416966
sample estimates:
mean of x
1.145
> t-test(T2,mu=1.13)
> t.test(T2,mu=1.13)
One Sample t-test
data: T2
0.8764687 1.2735313
sample estimates:
mean of x
1.075
> t.test(T3,mu=1.13)
data: T3
1.022606 1.357394
sample estimates:
mean of x
1.19
> t.test(T4,mu=1.13)
data: T4
t = -0.3241, df = 3, p-value = 0.7671
0.8054446 1.3945554
sample estimates:
mean of x
1.1
> t.test(T5,mu=1.13)
data: T5
0.8428211 1.4571789
sample estimates:
mean of x
1.15
> t.test(T6,mu=1.13)
data: T6
sample estimates:
mean of x
1.17
> resp<-c(T1,T2,T3,T4,T5,T6);resp
[1] 1.39 1.19 1.01 0.99 1.19 0.91 1.15 1.05 1.10 1.18 1.14 1.34 1.07 1.25 0.85
[16] 1.23 1.03 1.40 0.97 1.20 1.03 1.12 1.17 1.36
> tapply(resp,trat,length)
> trat<-gl(6,4,labels=c("T1","T2","T3","T4","T5","T6"))
> tapply(resp,trat,length)
T1 T2 T3 T4 T5 T6
4 4 4 4 4 4
> tapply(resp,trat,mean)
T1 T2 T3 T4 T5 T6
> tapply(resp,trat,var)
T1 T2 T3 T4 T5 T6
> tapply(resp,trat,t.test,mu=1.13)
$T1
data: X[[1L]]
sample estimates:
mean of x
1.145
$T2
data: X[[2L]]
0.8764687 1.2735313
sample estimates:
mean of x
1.075
$T3
data: X[[3L]]
1.022606 1.357394
sample estimates:
mean of x
1.19
$T4
data: X[[4L]]
0.8054446 1.3945554
sample estimates:
mean of x
1.1
$T5
data: X[[5L]]
0.8428211 1.4571789
sample estimates:
mean of x
1.15
$T6
data: X[[6L]]
0.9483683 1.3916317
sample estimates:
mean of x
1.17
> modelo<-aov(resp~trat)
> anova(modelo)
Response: resp