Skip to content

Commit

Permalink
use Missings.disallowmissing to model_response
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidt committed Jan 12, 2018
1 parent 5896a9f commit ae7b284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modelframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Extract the response column, if present. `DataVector` or
"""
function StatsBase.model_response(mf::ModelFrame)
if mf.terms.response
convert(Array, mf.df[mf.terms.eterms[1]])
Missings.disallowmissing(convert(Array, mf.df[mf.terms.eterms[1]]))
else
error("Model formula one-sided")
end
Expand Down

0 comments on commit ae7b284

Please sign in to comment.