Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Mar 25, 2024
1 parent 9d1ed43 commit 394135c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ function _simulate!(

d = m.resp.d

if length(β) == length(m.feterm.piv)
if length(β) == length(pivot(m))
# unlike LMM, GLMM stores the truncated, pivoted vector directly
β = β[view(pivot(m), 1:(m.feterm.rank))]
β = view(β, view(pivot(m), 1:(rank(m))))
end
fast = (length(m.θ) == length(m.optsum.final))
setpar! = fast ? setθ! : setβθ!
Expand Down

0 comments on commit 394135c

Please sign in to comment.