-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added opt. fname argument to sparseL and condVar #545
Conversation
Codecov Report
@@ Coverage Diff @@
## main #545 +/- ##
==========================================
+ Coverage 94.44% 96.13% +1.68%
==========================================
Files 27 27
Lines 2468 2485 +17
==========================================
+ Hits 2331 2389 +58
+ Misses 137 96 -41
Continue to review full report at Codecov.
|
@@ -358,7 +350,7 @@ function condVartables(m::MixedModel{T}) where {T} | |||
return NamedTuple{fnames(m)}((map(_cvtbl, condVar(m), m.reterms)...,)) | |||
end | |||
|
|||
function pushALblock!(A, L, blk) | |||
function _pushALblock!(A, L, blk) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the name of this function to indicate that it was an internal utility.
Co-authored-by: Phillip Alday <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! ready to tag 4.1? 😄
Sounds good to me. |
sparseL
gains an optionalfname
argument. When a grouping factor name is given for this argument the return value consists of the lower-right triangle starting at that the rows and columns for that factor.condVar
gains a method with a second argumentfname
. When given the conditional variance array for that factor only is returned.condVar
now just iterates over the grouping factor names.(The old code is retained for comparison but will never be executed - it should be removed after review of this PR.)condVar
is inMixedModelsMakie.caterpillar
which can now be simplified somewhat.