Skip to content

Commit

Permalink
good point, @ararslan
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Mar 25, 2024
1 parent 2d74d0a commit 9d1ed43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ function simulate!(
isempty(θ) || setθ!(m, θ)

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

# initialize y to standard normal
Expand Down

0 comments on commit 9d1ed43

Please sign in to comment.