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 Aug 1, 2024
1 parent 4f32567 commit 53e04e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ function parametricbootstrap(
σ = T(σ)
end
β = convert(Vector{T}, β)
θ = convert(Vector{T}, θ)
θ = convert(Vector{T}, θ)
# scratch -- note that this is the length of the unpivoted coef vector
βsc = coef(morig)
θsc = zeros(ftype, length(θ))
p = length(βsc)
p = length(βsc)
k = length(θsc)
m = deepcopy(morig)
for (key, val) in pairs(optsum_overrides)
Expand Down
2 changes: 1 addition & 1 deletion src/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function simulate!(
isempty(θ) || setθ!(m, θ)

if length(β) == length(pivot(m))
β = view(view(β, pivot(m)), 1:rank(m))
β = view(view(β, pivot(m)), 1:rank(m))
end

# initialize y to standard normal
Expand Down

0 comments on commit 53e04e3

Please sign in to comment.