-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lm(X,y) supports y as integer, but not X #84
Comments
This issue is now different.
Neither work, but this works
So either this issue is solved by requiring all floats, or it has expanded and now
|
This works because |
I see it. I'll make a PR harmonizing glm and lm |
Currently, lm(X,y) has asymmetric type support - y can be integer, X cannot. Please permit X as integer type. Example of the issue:
julia> y
3-element Array{Int64,1}:
2
4
6
julia> X
3x1 Array{Int64,2}:
1
2
3
julia> lm(X,y)
ERROR:
DensePredQR{T<:Union(Float64,Float32)}
has no method matching DensePredQR{T<:Union(Float64,Float32)}(::Array{Int64,2})julia> X
3x1 Array{Float64,2}:
1.0
2.0
3.0
julia> lm(X,y)
LinearModel{DensePredQR{Float64}}:
Coefficients: Estimate Std.Error t value Pr(>|t|)
x1 2.0 3.84593e-16 5.20031e15 <1e-31
The text was updated successfully, but these errors were encountered: