Method: Statsample::Test::BartlettSphericity#compute

Defined in:
lib/statsample/test/bartlettsphericity.rb

#computeObject

Uses SPSS formula. On Dziuban & Shirkey, the minus between the first and second statement is a *!!!



32
33
34
35
# File 'lib/statsample/test/bartlettsphericity.rb', line 32

def compute
  @value=-((@ncases-1)-(2*@nvars+5).quo(6))*Math::log(@matrix.determinant)
  @df=(@nvars*(@nvars-1)) / 2
end