Skip to content

Commit

Permalink
leverage returns a vec
Browse files Browse the repository at this point in the history
  • Loading branch information
gragusa committed Dec 13, 2024
1 parent f26bc0e commit 2bc2138
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/linpred.jl
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,7 @@ function modelmatrix(pp::LinPred; weighted::Bool=isweighted(pp))
end

function leverage(x::LinPredModel)
h = leverage(x.pp)
#return h
h = vec(leverage(x.pp))
hasfield(typeof(x.rr), :wrkwt) ? x.rr.wrkwt.*h : x.rr.wts.*h
end

Expand Down

0 comments on commit 2bc2138

Please sign in to comment.