Skip to content

Commit

Permalink
statsmodels formula
Browse files Browse the repository at this point in the history
  • Loading branch information
PharmCat authored and PharmCat committed Dec 5, 2023
1 parent 625fbe7 commit 3f3b993
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Metida.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ include("ml.jl")
include("fit.jl")
include("showutils.jl")
include("statsbase.jl")
include("statsmodels.jl")
include("utils.jl")
include("dof_satter.jl")
include("dof_contain.jl")
Expand Down
2 changes: 2 additions & 0 deletions src/statsmodels.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

StatsModels.formula(lmm::LMM) = lmm.mf.f
2 changes: 2 additions & 0 deletions test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ include("testdata.jl")
est = Metida.estimate(lmm, [0,0,0,0,0,1]; level = 0.9)
est = Metida.estimate(lmm; level = 0.9)

@test_nowarn formula(lmm)


############################################################################
# AI like algo
Expand Down

2 comments on commit 3f3b993

@PharmCat
Copy link
Owner

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/96523

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.14.9 -m "<description of version>" 3f3b993b5fc0fb860237c1b0d8bc83a934c9478b
git push origin v0.14.9

Please sign in to comment.