Skip to content

Commit

Permalink
find_predictable bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yufongpeng committed Dec 21, 2023
1 parent 79410b9 commit 6c862de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ function find_predictable(model, tbl)
level = sch[Term(name)].contrasts.levels
union!(todel, findall(!in(level), getproperty(tbl, name)))
end
for name in setdiff(propertynames(tbl), toval)
union!(todel, findall(isnothing, getproperty(tbl, name)))
end
setdiff(eachindex(tbl), todel)
end
"""
Expand Down

0 comments on commit 6c862de

Please sign in to comment.