-
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
rework passing and handling of FE coefficients to simulate
! for rank deficient models
#778
Conversation
…k deficient models
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #778 +/- ##
=======================================
Coverage 96.99% 96.99%
=======================================
Files 34 34
Lines 3360 3361 +1
=======================================
+ Hits 3259 3260 +1
Misses 101 101
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
if length(β) == length(pivot(m)) | ||
β = view(view(β, pivot(m)), 1:rank(m)) |
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.
this is the branch that handles the coef
case where we need to pull out the non--0.0
values in the correct order to multiply by fullrank(m)
right?
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.
correct.
simulate!(rng::AbstractRNG, m::MixedModel{T}; β=fixef(m), σ=m.σ, θ=T[]) | ||
simulate!(m::MixedModel; β=fixef(m), σ=m.σ, θ=m.θ) |
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 think it's worth documenting somewhere the difference between the possible kinds of inputs to this function. coef
-style (all values in input model matrix order, pivoted out betas are -0.0
) vs. fixef
-style (only betas for full-rank columns, in pivot order)
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.
Did behavior change? Did you add need features? If so, please update NEWS.md
docs/NEWS-update.jl
to update the cross-references.Should we release your changes right away? If so, bump the version:
visual example that makes the old behavior clear
Red are the Wald CIs, Black is bootstrap.