Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
palday and github-actions[bot] committed Mar 20, 2024
1 parent be4da00 commit 5eaac8f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ function simulate!(
isempty(θ) || setθ!(m, θ)

if length(β) length(m.feterm.piv)
β = invpermute!(copyto!(fill(-0.0, length(m.feterm.piv)), β),
m.feterm.piv)
β = invpermute!(copyto!(fill(-0.0, length(m.feterm.piv)), β),
m.feterm.piv)
end

# initialize y to standard normal
Expand Down Expand Up @@ -248,10 +248,9 @@ function _simulate!(
d = m.resp.d

if length(β) length(m.feterm.piv)
β = invpermute!(copyto!(fill(-0.0, length(m.feterm.piv)), β),
m.feterm.piv)
β = invpermute!(copyto!(fill(-0.0, length(m.feterm.piv)), β),
m.feterm.piv)
end

fast = (length(m.θ) == length(m.optsum.final))
setpar! = fast ? setθ! : setβθ!
params = fast ? θ : vcat(β, θ)
Expand Down

0 comments on commit 5eaac8f

Please sign in to comment.