Skip to content

Commit d6c038b

Browse files
committed
return the dispersion for varest of GLMMs with a dispersion param
1 parent 26fafe2 commit d6c038b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generalizedlinearmixedmodel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function updateη!(m::GeneralizedLinearMixedModel)
585585
m
586586
end
587587

588-
varest(m::GeneralizedLinearMixedModel{T}) where {T} = one(T)
588+
varest(m::GeneralizedLinearMixedModel{T}) where {T} = dispersion_parameter(m) ? dispersion(m) : one(T)
589589

590590
# delegate GLMM method to LMM field
591591
for f in (

0 commit comments

Comments
 (0)