statsample 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +7 -0
- data/README.md +2 -4
- data/Rakefile +6 -0
- data/benchmarks/correlation_matrix_methods/correlation_matrix.rb +0 -1
- data/examples/correlation_matrix.rb +0 -16
- data/examples/dataset.rb +0 -7
- data/examples/dominance_analysis_bootstrap.rb +0 -6
- data/examples/reliability.rb +0 -2
- data/lib/statsample.rb +3 -2
- data/lib/statsample/anova/oneway.rb +1 -1
- data/lib/statsample/bivariate.rb +4 -4
- data/lib/statsample/converter/spss.rb +1 -1
- data/lib/statsample/crosstab.rb +3 -3
- data/lib/statsample/daru.rb +1 -3
- data/lib/statsample/factor/parallelanalysis.rb +1 -3
- data/lib/statsample/formula/fit_model.rb +46 -0
- data/lib/statsample/formula/formula.rb +306 -0
- data/lib/statsample/matrix.rb +0 -2
- data/lib/statsample/regression.rb +1 -3
- data/lib/statsample/regression/multiple/alglibengine.rb +1 -1
- data/lib/statsample/regression/multiple/gslengine.rb +1 -1
- data/lib/statsample/regression/multiple/rubyengine.rb +1 -3
- data/lib/statsample/reliability.rb +3 -3
- data/lib/statsample/reliability/icc.rb +1 -2
- data/lib/statsample/reliability/multiscaleanalysis.rb +0 -1
- data/lib/statsample/reliability/scaleanalysis.rb +2 -3
- data/lib/statsample/reliability/skillscaleanalysis.rb +1 -1
- data/lib/statsample/test/levene.rb +4 -4
- data/lib/statsample/test/t.rb +10 -10
- data/lib/statsample/test/umannwhitney.rb +3 -3
- data/lib/statsample/version.rb +1 -1
- data/statsample.gemspec +4 -1
- data/test/fixtures/df.csv +15 -0
- data/test/helpers_tests.rb +7 -0
- data/test/test_factor.rb +0 -5
- data/test/test_factor_pa.rb +1 -6
- data/test/test_fit_model.rb +88 -0
- data/test/test_reliability.rb +0 -10
- data/test/test_statistics.rb +1 -1
- metadata +52 -48
data/test/test_statistics.rb
CHANGED
@@ -16,7 +16,7 @@ class StatsampleStatisicsTestCase < Minitest::Test
|
|
16
16
|
def test_recode_repeated
|
17
17
|
a = %w(a b c c d d d e)
|
18
18
|
exp = %w(a b c_1 c_2 d_1 d_2 d_3 e)
|
19
|
-
assert_equal(exp,
|
19
|
+
assert_equal(exp, Daru::ArrayHelper.recode_repeated(a))
|
20
20
|
end
|
21
21
|
|
22
22
|
def test_is_number
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Bustos
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daru
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 0.1.6
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 0.1.6
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: spreadsheet
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,6 +291,48 @@ dependencies:
|
|
291
291
|
- - "~>"
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: '2.1'
|
294
|
+
- !ruby/object:Gem::Dependency
|
295
|
+
name: pry
|
296
|
+
requirement: !ruby/object:Gem::Requirement
|
297
|
+
requirements:
|
298
|
+
- - ">="
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
version: '0'
|
301
|
+
type: :development
|
302
|
+
prerelease: false
|
303
|
+
version_requirements: !ruby/object:Gem::Requirement
|
304
|
+
requirements:
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '0'
|
308
|
+
- !ruby/object:Gem::Dependency
|
309
|
+
name: rubocop
|
310
|
+
requirement: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - ">="
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0'
|
315
|
+
type: :development
|
316
|
+
prerelease: false
|
317
|
+
version_requirements: !ruby/object:Gem::Requirement
|
318
|
+
requirements:
|
319
|
+
- - ">="
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: '0'
|
322
|
+
- !ruby/object:Gem::Dependency
|
323
|
+
name: activesupport
|
324
|
+
requirement: !ruby/object:Gem::Requirement
|
325
|
+
requirements:
|
326
|
+
- - "~>"
|
327
|
+
- !ruby/object:Gem::Version
|
328
|
+
version: '4.2'
|
329
|
+
type: :development
|
330
|
+
prerelease: false
|
331
|
+
version_requirements: !ruby/object:Gem::Requirement
|
332
|
+
requirements:
|
333
|
+
- - "~>"
|
334
|
+
- !ruby/object:Gem::Version
|
335
|
+
version: '4.2'
|
294
336
|
description: |
|
295
337
|
A suite for basic and advanced statistics on Ruby. Tested on CRuby 1.9.3, 2.0.0
|
296
338
|
and 2.1.1. See `.travis.yml` for more information.
|
@@ -397,6 +439,8 @@ files:
|
|
397
439
|
- lib/statsample/factor/pca.rb
|
398
440
|
- lib/statsample/factor/principalaxis.rb
|
399
441
|
- lib/statsample/factor/rotation.rb
|
442
|
+
- lib/statsample/formula/fit_model.rb
|
443
|
+
- lib/statsample/formula/formula.rb
|
400
444
|
- lib/statsample/graph.rb
|
401
445
|
- lib/statsample/graph/boxplot.rb
|
402
446
|
- lib/statsample/graph/histogram.rb
|
@@ -438,6 +482,7 @@ files:
|
|
438
482
|
- statsample.gemspec
|
439
483
|
- test/fixtures/bank2.dat
|
440
484
|
- test/fixtures/correlation_matrix.rb
|
485
|
+
- test/fixtures/df.csv
|
441
486
|
- test/fixtures/hartman_23.matrix
|
442
487
|
- test/fixtures/stock_data.csv
|
443
488
|
- test/fixtures/tetmat_matrix.txt
|
@@ -458,6 +503,7 @@ files:
|
|
458
503
|
- test/test_factor.rb
|
459
504
|
- test/test_factor_map.rb
|
460
505
|
- test/test_factor_pa.rb
|
506
|
+
- test/test_fit_model.rb
|
461
507
|
- test/test_ggobi.rb
|
462
508
|
- test/test_gsl.rb
|
463
509
|
- test/test_histogram.rb
|
@@ -504,50 +550,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
504
550
|
version: '0'
|
505
551
|
requirements: []
|
506
552
|
rubyforge_project:
|
507
|
-
rubygems_version: 2.
|
553
|
+
rubygems_version: 2.5.2
|
508
554
|
signing_key:
|
509
555
|
specification_version: 4
|
510
556
|
summary: A suite for basic and advanced statistics on Ruby
|
511
|
-
test_files:
|
512
|
-
- test/fixtures/bank2.dat
|
513
|
-
- test/fixtures/correlation_matrix.rb
|
514
|
-
- test/fixtures/hartman_23.matrix
|
515
|
-
- test/fixtures/stock_data.csv
|
516
|
-
- test/fixtures/tetmat_matrix.txt
|
517
|
-
- test/fixtures/tetmat_test.txt
|
518
|
-
- test/helpers_tests.rb
|
519
|
-
- test/test_analysis.rb
|
520
|
-
- test/test_anova_contrast.rb
|
521
|
-
- test/test_anovaoneway.rb
|
522
|
-
- test/test_anovatwoway.rb
|
523
|
-
- test/test_anovatwowaywithdataset.rb
|
524
|
-
- test/test_anovawithvectors.rb
|
525
|
-
- test/test_awesome_print_bug.rb
|
526
|
-
- test/test_bartlettsphericity.rb
|
527
|
-
- test/test_bivariate.rb
|
528
|
-
- test/test_codification.rb
|
529
|
-
- test/test_crosstab.rb
|
530
|
-
- test/test_dominance_analysis.rb
|
531
|
-
- test/test_factor.rb
|
532
|
-
- test/test_factor_map.rb
|
533
|
-
- test/test_factor_pa.rb
|
534
|
-
- test/test_ggobi.rb
|
535
|
-
- test/test_gsl.rb
|
536
|
-
- test/test_histogram.rb
|
537
|
-
- test/test_matrix.rb
|
538
|
-
- test/test_multiset.rb
|
539
|
-
- test/test_regression.rb
|
540
|
-
- test/test_reliability.rb
|
541
|
-
- test/test_reliability_icc.rb
|
542
|
-
- test/test_reliability_skillscale.rb
|
543
|
-
- test/test_resample.rb
|
544
|
-
- test/test_srs.rb
|
545
|
-
- test/test_statistics.rb
|
546
|
-
- test/test_stest.rb
|
547
|
-
- test/test_stratified.rb
|
548
|
-
- test/test_test_f.rb
|
549
|
-
- test/test_test_kolmogorovsmirnov.rb
|
550
|
-
- test/test_test_t.rb
|
551
|
-
- test/test_umannwhitney.rb
|
552
|
-
- test/test_vector.rb
|
553
|
-
- test/test_wilcoxonsignedrank.rb
|
557
|
+
test_files: []
|