diff --git a/src/bootstrap.jl b/src/bootstrap.jl index 25d989535..c90dc33a7 100644 --- a/src/bootstrap.jl +++ b/src/bootstrap.jl @@ -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) diff --git a/src/simulate.jl b/src/simulate.jl index 491415ec0..d817f4d0d 100644 --- a/src/simulate.jl +++ b/src/simulate.jl @@ -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