Sha256: d94e0a4b027437440a968736f7b0e9552d1b07bfc5bad5cf056d47d9611a8264

Contents?: true

Size: 557 Bytes

Versions: 6

Compression:

Stored size: 557 Bytes

Contents

#!/usr/bin/ruby
$:.unshift(File.dirname(__FILE__)+'/../lib/')

require 'statsample'

Statsample::Analysis.store(Statsample::Reliability::ICC) do

  size=1000
  a = Daru::Vector.new_with_size(size) {rand(10)}
  b = a.recode{|i|i+rand(4)-2}
  c = a.recode{|i|i+rand(4)-2}
  d = a.recode{|i|i+rand(4)-2}
  @ds = Daru::DataFrame.new({:a => a,:b => b,:c => c,:d => d})
  @icc=Statsample::Reliability::ICC.new(@ds)
  summary(@icc)
  @icc.type=:icc_3_1
  summary(@icc)
  @icc.type=:icc_a_k
  summary(@icc)
end

if __FILE__==$0
  Statsample::Analysis.run_batch
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
statsample-ekatena-2.0.2.1 examples/icc.rb
statsample-ekatena-2.0.2 examples/icc.rb
statsample-2.1.0 examples/icc.rb
statsample-2.0.2 examples/icc.rb
statsample-2.0.1 examples/icc.rb
statsample-2.0.0 examples/icc.rb