statsample 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,6 @@ module Statsample
5
5
  # only uses tuples without missing data
6
6
  def cronbach_alpha(ods)
7
7
  ds=ods.dup_only_valid
8
- return nil if ds.vectors.any? {|k,v| v.variance==0}
9
8
  n_items=ds.fields.size
10
9
  return nil if n_items<=1
11
10
  s2_items=ds.vectors.inject(0) {|ac,v|
@@ -150,4 +149,4 @@ end # Statsample
150
149
  require 'statsample/reliability/icc.rb'
151
150
  require 'statsample/reliability/scaleanalysis.rb'
152
151
  require 'statsample/reliability/skillscaleanalysis.rb'
153
- require 'statsample/reliability/multiscaleanalysis.rb'
152
+ require 'statsample/reliability/multiscaleanalysis.rb'