-
Notifications
You must be signed in to change notification settings - Fork 49
added lmm
and glmm
as convenience wrappers for fit
#810
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
Conversation
EDIT: i figured it out issue~can someone help me with this warning: ~ ```julia-repl ┌ MixedModels │ WARNING: Method definition lmm(StatsModels.FormulaTerm{L, R} where R where L, Any) in module MixedModels at /home/runner/work/MixedModels.jl/MixedModels.jl/src/linearmixedmodel.jl:230 overwritten at /home/runner/work/MixedModels.jl/MixedModels.jl/src/linearmixedmodel.jl:231. │ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. └ ```but the same doesn't seem to happen with |
MixedModels.jl had something like this in the past, but we dropped that interface. Maybe @dmbates can comment more on the why. To actually add it, you can simply do: lmm(args...; kwargs...) = fit(LinearMixedModel, args...; kwargs...)
glmm(args...; kwargs...) = fit(GeneralizedLinearMixedModel, args...; kwargs...) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #810 +/- ##
=======================================
Coverage 97.33% 97.33%
=======================================
Files 36 36
Lines 3488 3490 +2
=======================================
+ Hits 3395 3397 +2
Misses 93 93
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 there should be a test involving more optional arguments, such as REML=true
to lmm
just to ensure that everything is getting passed on properly.
Were you going to modify the documentation to include this function?
Okay i will add the tests. I wanted some comments on what to write in the docstring |
@dmbates Added a test for |
You're adding a feature in a post 1.0 release without breaking anything, so it's a minor (major.minor.patch) version bump according to SemVer. |
@palday I did add |
right, I meant figure out the new minor version no. |
you haven't committed and pushed that change yet 😉 |
@palday I meant on local, lol. I was rendering the docs locally and running |
lmm
as a wrapper for fit(LinearMixedModel, ...)
. fixed #809lmm
and glmm
as convenience wrappers for fit
fixed #809
Okay! I think this is good to go! |
The reference
gives an error because there is no doc-string for |
lmm
and glmm
as convenience wrappers for fit
fixed #809lmm
and glmm
as convenience wrappers for fit
fixed #809
lmm
and glmm
as convenience wrappers for fit
fixed #809lmm
and glmm
as convenience wrappers for fit
fixes #809
lmm
and glmm
as convenience wrappers for fit
fixes #809lmm
and glmm
as convenience wrappers for fit
I'll push a change shortly that adds a secondary link to the type constructor and that should cover everything. |
I don't think we need to display the output in the Quick Start section but I couldn't hide it so I left it as is. Is it possible to hide output without using a |
If you don't want to display output, do you even want the code executed? If you're not executing the code, then a normal triple-backtick codeblock would work. That said, I don't think there's harm in showing the output. |
Let's keep the output |
closes #809
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: