https://github.com/dirmeier/mixed-models
Reference implementations for (generalized) linear mixed models.
https://github.com/dirmeier/mixed-models
generalized-linear-mixed-models linear-mixed-models python
Last synced: 11 months ago
JSON representation
Reference implementations for (generalized) linear mixed models.
- Host: GitHub
- URL: https://github.com/dirmeier/mixed-models
- Owner: dirmeier
- License: gpl-3.0
- Created: 2019-10-04T21:06:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-04T15:07:40.000Z (about 6 years ago)
- Last Synced: 2025-01-17T06:45:46.969Z (over 1 year ago)
- Topics: generalized-linear-mixed-models, linear-mixed-models, python
- Language: Python
- Homepage: https://dirmeier.github.io/mixed-models/index.html
- Size: 187 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mixed models
[](http://www.repostatus.org/#concept)
> Reference implementations for (generalized) linear mixed models.
## About
Concise reference implementations for fitting frequentist (generalized) linear mixed models.
The implementations are not really efficient and don't use results from contemporary research (i.e., `lme4`'s PLS and PIRLS).
Specifically, the following methods are used:
- For LMMs first the random effects are marginalized out and the variance parameters of the errors and of the random effects are estimated.
Having the variance components estimated, Henderson's mixed model equations are used to estimate the fixed effects and predict random effects.
- For GLMMs an IRLS approach is used. In the first step of each iteration variance components are estimated by using a Laplace approximation to the likelihood of the marginal model.
In the second step we estimate the fixed effects and predict random effects using Henderson's mixed mdoel equations on working responses.
## Author
Simon Dirmeier simon.dirmeier @ web.de