[R] ANOVA and within subject designs

Ulises Mora Alvarez umalvarez at fata.unam.mx
Thu Jul 4 16:07:19 CEST 2002


On Thu, 4 Jul 2002, Jan Malte Wiener wrote:

> hi,
> i am trying to get the same results with aov() as with unix anova.
> for some reason i can not figure out  what exact formula to use in my 
> design.
> my experiment is a within subject design with 2 factors (routeType and 
> expBlock).
> 
> i tried:
> summary(aov(formula= perf ~ expBlock * routeType + 
> Error(Subject/(Block+RouteType)), data=anovaDataAll))


TRY
summary(aov(perf ~ expBlock + routeType + Error(Subject/(Block + 
RouteType)), data = ...))

 
> is there a mistake in the formula ????
> 
> 
> my data.frame anovaDataAll looks like this
> 
> subject routeType 	block 	perf
> 1 
> 	1	1	0.6
> 2 
> 	1	1	0.5	
> 3 
> 	1	1
> .
> .
> 1 
> 	1	2	0.3	
> 2 
> 	1	2	0.2
> 3 
> 	1	2	0.7
> .
> .
> .
> 1 
> 	2	1	0.4
> 2 
> 	2	1	0.3
> 3 
> 	2 
> 1 
> 0.6
> .
> .
> .
> 1 
> 	2	2	0.4
> 2 
> 	2	2	0.3
> 3 
> 	2	2	0.6
> .
> .
> .
> 
>   thanks for help !
> jan wiener
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-- 
Ulises M. Alvarez
LAB. DE CHOQUES DEBILES
CENTRO DE FISICA APLICADA
Y TECNOLOGIA AVANZADA
umalvarez at fata.unam.mx

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list