ruby-statsample's statsample-1.0.1 Documentation

ruby-statsample.rubyforge.org/

DESCRIPTION:

A suite for basic and advanced statistics on Ruby. Tested on Ruby 1.8.7, 1.9.1, 1.9.2 (April, 2010) and JRuby 1.4 (Ruby 1.8.7 compatible).

Include:

FEATURES:

Examples of use:

See multiples examples of use on [github.com/clbustos/statsample/tree/master/examples/]

Correlation matrix

require 'statsample'
a=1000.times.collect {rand}.to_scale
b=1000.times.collect {rand}.to_scale
c=1000.times.collect {rand}.to_scale
d=1000.times.collect {rand}.to_scale
ds={'a'=>a,'b'=>b,'c'=>c,'d'=>d}.to_dataset
cm=Statsample::Bivariate.correlation_matrix(ds)
puts cm.summary

REQUIREMENTS:

Optional:

Note: Use gsl 1.12.109 or later.

RESOURCES

INSTALL:

$ sudo gem install statsample

On *nix, you should install statsample-optimization to retrieve gems gsl, statistics2 and a C extension to speed some methods.

There are available precompiled version for Ruby 1.9 on x86, x86_64 and mingw32 archs.

$ sudo gem install statsample-optimization

If you use Ruby 1.8, you should compile statsample-optimization, usign parameter --platform ruby

$ sudo gem install statsample-optimization --platform ruby

If you need to work on Structural Equation Modeling, you could see statsample-sem. You need R with sem or OpenMx [openmx.psyc.virginia.edu/] libraries installed

$ sudo gem install statsample-sem

Available setup.rb file

sudo gem ruby setup.rb

LICENSE:

GPL-2 (See LICENSE.txt)

Files

Classes/Modules

Methods

[Validate]

Generated with the Darkfish Rdoc Generator 2.