require 'statsample'
Statsample::Analysis.store(Statsample::Test::Levene) do
a = Daru::Vector.new([1,2,3,4,5,6,7,8,100,10])
puts "variance a : #{a.variance}"
b = Daru::Vector.new([30,40,50,60,70,80,90,100,110,120])
puts "variance b : #{b.variance}\n\n"
summary(levene([a,b]))
end
Statsample::Analysis.run_batch
variance a : 908.0444444444445 variance b : 916.6666666666666 Analysis 2016-03-24 16:01:57 +0000 = Statsample::Test::Levene Levene Test : F(1, 18) = 0.7781 , p = 0.3893