[R] sphericity calculation

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed May 11 09:28:13 CEST 2005


Darren Weber wrote:

> Dear Prof. Baron,
> 
> thankyou for your pdf paper on using R, at
> 
> http://www.psych.upenn.edu/~baron/rpsych.pdf
> 
> I am currently interested in the sphericity notes on pp. 45-47.
> 
> The equation on p. 46 suggests the following R calculation:
> 
> D <- k^2 * ( mean(diag(S)) - mean(S) )^2
> 
> while the notes in the pdf indicate the following:
> 
> D <- k^2 * ( mean(S) - mean(diag(S)) )^2
> 
> Can you please consider this and advise the correct calculation?


Both are equal! Mathematical calculations you should really know from 
school show that
(a - b)^2 = (b - a)^2
.....

Uwe Ligges



> Best, Darren
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list