We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has_ranef
1 parent 0aac727 commit f0fe1e2Copy full SHA for f0fe1e2
src/data_constructors.jl
@@ -97,7 +97,11 @@ Returns `true` if any of the terms in `formula` is a `FunctionTerm` or false
97
otherwise.
98
"""
99
function has_ranef(formula::FormulaTerm)
100
- return any(t -> t isa FunctionTerm{typeof(|)}, formula.rhs)
+ if formula.rhs isa StatsModels.Term
101
+ return false
102
+ else
103
+ return any(t -> t isa FunctionTerm{typeof(|)}, formula.rhs)
104
+ end
105
end
106
107
0 commit comments