Created
July 13, 2016 01:36
-
-
Save lokeshh/f62dedbd183bee283f0e6efe542eb8ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > try = Daru::DataFrame.from_csv 'try.csv' | |
| > Statsample::GLM.compute try, 'y', :logistic | |
| ExceptionForMatrix::ErrNotRegular: Not Regular Matrix | |
| from /home/ubuntu/.rvm/gems/ruby-2.2.3/gems/backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:933:in `block in inverse_from' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| c_yes | b | y | |
|---|---|---|---|
| 0 | 62.1 | 0 | |
| 1 | 74.7 | 1 | |
| 0 | 69.7 | 1 | |
| 0 | 71 | 0 | |
| 0 | 56.9 | 1 | |
| 0 | 58.7 | 0 | |
| 0 | 63.3 | 0 | |
| 1 | 70.4 | 1 | |
| 0 | 70.5 | 1 | |
| 0 | 59.2 | 0 | |
| 0 | 76.4 | 0 | |
| 0 | 71.7 | 0 | |
| 1 | 57.5 | 1 | |
| 0 | 61.1 | 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that's some weird problem with statsample-glm...
For example if I do
then everything works fine...
By the way, R does not have any problem with these data:
However, notice the huge p-value of 0.996 in the R output. This means that there is almost no linear relationship between b and y. That might be related to the problem that statsample-glm has...