Skip to content
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

Fix simulate! when only the estimable coefficients are provided #756

Merged
merged 18 commits into from Mar 25, 2024

Conversation

palday
Copy link
Member

@palday palday commented Mar 20, 2024

closes #741

Did behavior change? Did you add need features? If so, please update NEWS.md

  • add entry in NEWS.md
  • after opening this PR, add a reference and run docs/NEWS-update.jl to update the cross-references.

Should we release your changes right away? If so, bump the version:

  • I've bumped the version appropriately

src/simulate.jl Outdated Show resolved Hide resolved
src/simulate.jl Outdated Show resolved Hide resolved
src/simulate.jl Outdated Show resolved Hide resolved
palday and others added 6 commits March 20, 2024 01:51
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/generalizedlinearmixedmodel.jl Outdated Show resolved Hide resolved
src/generalizedlinearmixedmodel.jl Outdated Show resolved Hide resolved
src/generalizedlinearmixedmodel.jl Outdated Show resolved Hide resolved
src/simulate.jl Outdated Show resolved Hide resolved
src/simulate.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.87%. Comparing base (e7cd789) to head (869e0de).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #756      +/-   ##
==========================================
+ Coverage   96.45%   96.87%   +0.42%     
==========================================
  Files          34       34              
  Lines        3354     3358       +4     
==========================================
+ Hits         3235     3253      +18     
+ Misses        119      105      -14     
Flag Coverage Δ
current 96.81% <100.00%> (+0.42%) ⬆️
minimum 96.77% <100.00%> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@palday palday requested review from dmbates and ararslan March 20, 2024 03:35
Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some comments/questions/suggestions but nothing blocking.

src/generalizedlinearmixedmodel.jl Outdated Show resolved Hide resolved
src/generalizedlinearmixedmodel.jl Outdated Show resolved Hide resolved
src/simulate.jl Outdated Show resolved Hide resolved
padding = length(model.feterm.piv) - m.feterm.rank
append!(β, fill(-0.0, padding))
if length(β) == length(m.feterm.piv)
# unlike LMM, GLMM stores the truncated, pivoted vector directly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tangential to this PR but it could be convenient to have some kind of pivot accessor to retrieve this array.

test/bootstrap.jl Outdated Show resolved Hide resolved
src/predict.jl Outdated Show resolved Hide resolved
Co-authored-by: Alex Arslan <ararslan@comcast.net>
@palday palday merged commit beaaa36 into main Mar 25, 2024
10 of 11 checks passed
@palday palday deleted the pa/simulate_fixef branch March 25, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to adjust parametricbootstrap display for GLMMs w/o scale parameter
2 participants