Skip to content

Commit

Permalink
Update src/predict.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Arslan <[email protected]>
  • Loading branch information
palday and ararslan authored Mar 25, 2024
1 parent 729dbcb commit 869e0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/predict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function _predict(m::MixedModel{T}, newdata, β; new_re_levels) where {T}
ytemp, lmm
end

pivotmatch = mnew.feterm.piv[pivot(m)]
pivotmatch = pivot(mnew)[pivot(m)]
grps = fnames(m)
mul!(y, view(mnew.X, :, pivotmatch), β)
# mnew.reterms for the correct Z matrices
Expand Down

0 comments on commit 869e0de

Please sign in to comment.