Sha256: e37eb4473af432bc5ff0fc196db875ff28d93cd60a6ffa7447b7126422d6caf9

Contents?: true

Size: 668 Bytes

Versions: 20

Compression:

Stored size: 668 Bytes

Contents

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

require 'statsample'
ct=Matrix[[58,52,1],[26,58,3],[8,12,9]]

# Estimation of polychoric correlation using two-step (default)
poly=Statsample::Bivariate::Polychoric.new(ct, :name=>"Polychoric with two-step", :debug=>true)

puts poly.summary

# Estimation of polychoric correlation using joint method (slow)
poly=Statsample::Bivariate::Polychoric.new(ct, :method=>:joint, :name=>"Polychoric with joint")
puts poly.summary


# Uses polychoric series (not recomended)

poly=Statsample::Bivariate::Polychoric.new(ct, :method=>:polychoric_series, :name=>"Polychoric with polychoric series")
puts poly.summary

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
statsample-0.18.0 examples/polychoric.rb
statsample-0.17.0 examples/polychoric.rb
statsample-0.16.0 examples/polychoric.rb
statsample-0.15.1 examples/polychoric.rb
statsample-0.15.0 examples/polychoric.rb
statsample-0.14.1 examples/polychoric.rb
statsample-0.14.0 examples/polychoric.rb
statsample-0.13.1 examples/polychoric.rb
statsample-0.13.0 examples/polychoric.rb
statsample-0.12.0 examples/polychoric.rb
statsample-0.11.2 examples/polychoric.rb
statsample-0.11.1 examples/polychoric.rb
statsample-0.11.0 examples/polychoric.rb
statsample-0.10.0 examples/polychoric.rb
statsample-0.9.0 examples/polychoric.rb
statsample-0.8.2 examples/polychoric.rb
statsample-0.8.1 examples/polychoric.rb
statsample-0.8.0 examples/polychoric.rb
statsample-0.7.0 demo/polychoric.rb
statsample-0.6.7 demo/polychoric.rb