statsample 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/Gemfile +1 -16
- data/History.txt +51 -46
- data/LICENSE.txt +7 -82
- data/README.md +145 -150
- data/Rakefile +20 -102
- data/lib/spss.rb +17 -14
- data/lib/statsample/crosstab.rb +2 -2
- data/lib/statsample/dataset.rb +82 -81
- data/lib/statsample/matrix.rb +43 -43
- data/lib/statsample/reliability.rb +1 -2
- data/lib/statsample/vector.rb +157 -124
- data/lib/statsample/version.rb +1 -1
- data/lib/statsample.rb +91 -91
- data/references.txt +2 -1
- data/statsample.gemspec +89 -0
- data/test/test_awesome_print_bug.rb +16 -0
- data/test/test_crosstab.rb +8 -0
- data/test/test_histogram.rb +7 -0
- data/test/test_vector.rb +62 -48
- metadata +109 -120
- data/.gemtest +0 -0
- data/Gemfile.lock +0 -78
- data/Manifest.txt +0 -157
- data/setup.rb +0 -1585
@@ -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'
|