Skip to content

Commit e513a72

Browse files
committed
return the dispersion for varest of GLMMs with a dispersion param
1 parent 44e4ecc commit e513a72

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
@@ -584,7 +584,7 @@ function updateη!(m::GeneralizedLinearMixedModel)
584584
m
585585
end
586586

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

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

0 commit comments

Comments
 (0)