I am quite newbie of ANOVA, and just learnt how to run the function.
I am using the function 'Anova' from the package 'car' in R, and when I summary the analysis, I see the text:
Univariate Type II Repeated-Measures ANOVA Assuming Sphericity
My professor told me that, "assuming sphericity" is not the thing she want, and she want some kind of "real" thing. Unfortunately, she does not know R well so she cannot tell me how to do that.
Could you explain me what is "assuming sphericity", and how could I satisfy the requirement of my prof?
Updated:
Thanks for Rolan and Peter, I chose to run "lme" (in package "nlme") and I have the output:
lme3 <- lme (Z_score ~ WTH1 + WTH2, random = ~1|BTW, data = spf)
summary (lme3)
> Linear mixed-effects model fit by REML Data: spf
> AIC BIC logLik
> 327.9795 341.7903 -158.9897
>
> Random effects: Formula: ~1 | BTW
> (Intercept) Residual StdDev: 2.310226e-05 0.8962092
>
> Fixed effects: Z_score ~ WTH1 + WTH2
> Value Std.Error DF t-value p-value
>(Intercept) -0.6584315 0.1417031 113 -4.646557 0e+00
>WTH11 0.6741030 0.1636247 113 4.119813 1e-04
>WTH21 0.6427601 0.1636247 113 3.928259 1e-04
>Correlation:
> (Intr) WTH11
> WTH11 -0.577
> WTH21 -0.577 0.000
>
> Standardized Within-Group Residuals:
> Min Q1 Med Q3 Max
> -2.1274596 -0.7449203 -0.1466509 0.6385587 3.2199382
>
> Number of Observations: 120 Number of Groups: 5
So, you can see, my dataset have 5 columns:
> str (spf)
> 'data.frame': 120 obs. of 5 variables:
> $ id : Factor w/ 30 levels "1","2","3","4",..: 1 1 1 1 2 2 2 2 3 3 ...
> $ BTW : Factor w/ 5 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 1 1 ...
> $ WTH1 : Factor w/ 2 levels "0","1": 1 1 2 2 1 1 2 2 1 1 ...
> $ WTH2 : Factor w/ 2 levels "0","1": 1 2 1 2 1 2 1 2 1 2 ...
> $ Z_score: num -1.06 -0.678 1.194 1.94 -1.06 ...
BTW (between) is actually a Group ID (we run an experiment 5 times, each time with a different group), and WTH1 and WTH2 (within) are within variables. Z_score is the measurement.
I want to know, is there any effect of BTW on WTH1 and WTH2 (I hope not), but I do not know how to interpret the data of lme?
(Using Anova function I mentioned above, the result is quite straightforward, with the notion '*' and '' etc to determine the significant level, but there is a problem related to 'Assuming Sphericity")