Generalized Linear Models extension for Statsample
Clone or download
Pull request Compare This branch is 40 commits ahead, 1 commit behind AnkurGel:master.
lokeshh and v0dro Improve predict (#38)
* add test for bug

* set order of vectors for predict to work correctly

* improve testing
Latest commit 1cb9798 Sep 4, 2016


Build Status

Gem Version

Statsample-GLM is an extension of Generalized Linear Models to Statsample, a suite of advance statistics in Ruby.

Requires ruby 2.0.0 or higher.


Statsample-glm includes the following Generalized Linear Models:

  • Iteratively Reweighted Least Squares
    • Poisson Regression
    • Logistic Regression
  • Maximum Likelihood Models (Newton Raphson)
    • Logistic Regression
    • Probit Regression
    • Normal Regression

Statsample-GLM was created by Ankur Goel as part of Google's Summer of Code 2013. It is the part of the SciRuby Project.


gem install statsample-glm


To use the library

require 'statsample-glm'


Case Studies


The API doc is online. For more code examples see also the spec files in the source tree.

Project home page


Copyright (c) 2013 Ankur Goel and the Ruby Science Foundation. See LICENSE.txt for further details.

Statsample is (c) 2009-2013 Claudio Bustos and the Ruby Science Foundation.