Skip to content

Instantly share code, notes, and snippets.

@lokeshh
Created July 15, 2016 20:53
Show Gist options
  • Select an option

  • Save lokeshh/e23a720e52202c88a27e569495dd8d1b to your computer and use it in GitHub Desktop.

Select an option

Save lokeshh/e23a720e52202c88a27e569495dd8d1b to your computer and use it in GitHub Desktop.
[1] pry(main)> ds = Daru::DataFrame.new({
[1] pry(main)* a: [1.2, 2.3, 3.1],
[1] pry(main)* b: [4.20, 5.6, 1.1],
[1] pry(main)* c: [1.1, 2.2, 6.6]})
=> #<Daru::DataFrame(3x3)>
a b c
0 1.2 4.2 1.1
1 2.3 5.6 2.2
2 3.1 1.1 6.6
[2] pry(main)> x = Statsample::Regression.multiple ds, :c
...<output scrapped>
[3] pry(main)> x.summary
GSL::ERROR::EDOM: Ruby/GSL error code 1, domain error (file beta.c, line 56), input domain error
from /home/ubuntu/.rvm/gems/ruby-2.2.3/gems/distribution-0.7.3/lib/distribution/f/gsl.rb:23:in `fdist_P'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment