{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/131","repository_url":"https://api.github.com/repos/JuliaStats/GLM.jl","labels_url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/131/comments","events_url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/131/events","html_url":"https://github.com/JuliaStats/GLM.jl/issues/131","id":139450564,"number":131,"title":"lm doesn't work with Int64 parameters","user":{"login":"maximsch2","id":464680,"avatar_url":"https://avatars.githubusercontent.com/u/464680?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsch2","html_url":"https://github.com/maximsch2","followers_url":"https://api.github.com/users/maximsch2/followers","following_url":"https://api.github.com/users/maximsch2/following{/other_user}","gists_url":"https://api.github.com/users/maximsch2/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsch2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsch2/subscriptions","organizations_url":"https://api.github.com/users/maximsch2/orgs","repos_url":"https://api.github.com/users/maximsch2/repos","events_url":"https://api.github.com/users/maximsch2/events{/privacy}","received_events_url":"https://api.github.com/users/maximsch2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-09T01:59:05Z","updated_at":"2016-03-09T16:32:38Z","closed_at":"2016-03-09T08:37:17Z","body":"```julia\r\ntest = DataFrame(X = [1,2,3], Y=[4,5,6])\r\nlm(Y ~ X, test)\r\n```\r\nresults in \r\n```\r\nLoadError: MethodError: `convert` has no method matching convert(::Type{GLM.LmResp{Array{Float64,1}}}, ::Array{Int64,1})\r\nThis may have arisen from a call to the constructor GLM.LmResp{Array{Float64,1}}(...),\r\nsince type constructors fall back to convert methods.\r\nClosest candidates are:\r\n  call{T}(::Type{T}, ::Any)\r\n  convert{T}(::Type{T}, !Matched::T)\r\n  convert{V<:DenseArray{T<:AbstractFloat,1}}(::Type{GLM.LmResp{V<:DenseArray{T<:AbstractFloat,1}}}, !Matched::V<:DenseArray{T<:AbstractFloat,1})\r\n  ...\r\nwhile loading In[276], in expression starting on line 2\r\n\r\n in fit at /home/grechkin/.julia/v0.4/GLM/src/lm.jl:62\r\n in fit at /home/grechkin/.julia/v0.4/GLM/src/lm.jl:71\r\n in fit at /home/grechkin/.julia/v0.4/DataFrames/src/statsmodels/statsmodel.jl:55\r\n in lm at /home/grechkin/.julia/v0.4/GLM/src/lm.jl:74\r\n```\r\n\r\nThis in Julia v0.4.3, GLM version 0.5.0.\r\n\r\nSeems like the values should've been promoted to Float64 at some point, but weren't"},"comment":{"url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/comments/194382203","html_url":"https://github.com/JuliaStats/GLM.jl/issues/131#issuecomment-194382203","issue_url":"https://api.github.com/repos/JuliaStats/GLM.jl/issues/131","id":194382203,"user":{"login":"maximsch2","id":464680,"avatar_url":"https://avatars.githubusercontent.com/u/464680?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsch2","html_url":"https://github.com/maximsch2","followers_url":"https://api.github.com/users/maximsch2/followers","following_url":"https://api.github.com/users/maximsch2/following{/other_user}","gists_url":"https://api.github.com/users/maximsch2/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsch2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsch2/subscriptions","organizations_url":"https://api.github.com/users/maximsch2/orgs","repos_url":"https://api.github.com/users/maximsch2/repos","events_url":"https://api.github.com/users/maximsch2/events{/privacy}","received_events_url":"https://api.github.com/users/maximsch2/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T16:32:38Z","updated_at":"2016-03-09T16:32:38Z","body":"Awesome, thanks!"}}