Fit a Cosinor Model Using a Generalized Mixed Modeling Framework
Overview
Allows users to fit a cosinor model using the 'glmmTMB' framework. This extends on existing cosinor modeling packages, including 'cosinor' and 'circacompare', by including a wide range of available link functions and the capability to fit mixed models. The cosinor model is described by Cornelissen (2014) doi:10.1186/1742-4682-11-16.
- Refactor polar_plot() and autoplot() to avoid functions that are defined within other functions. Separate out into separate scripts where necessary.
- Add example of using likelihood-ratio test to assess differential rhythmicity.
- Use the mean of continuous variables as the reference level, and the first level for factors when creating newdata within
autoplot(). - Fix test-coverage GHA.
- Use
reformulas::findbars()/nobars()instead of the now-deprecatedlme4::findbars()/nobars(), which were moved to thereformulaspackage and emitted a one-off deprecation warning that madetest-cglmm.Rorder-dependent and flaky on R-devel. This was the cause of the CRAN archival on 2026-08-22. - Fix
autoplot()legends being shown in the wrong order (colour before linetype/shape) when bothranef_plotand a grouping variable are plotted together, caused by a ggplot2 4.0 change to default guide ordering.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-13
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 25 (2 internal)includes a package overview page
- Examples that run
- 81%17 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 89%
- Documented parameters
- 100%
- Return-value docs
- 89%
- Help pages citing references
- 4%
- GLMMcosinor HTML
- data-simulations HTML
- mixed-models HTML
- model-specification HTML
- model-visualisations HTML
- multiple-components HTML
Downloads
Repository
- PRs merged (all time)
- 81%
- Median days to close, 50 most recently updated closed issues
- 26
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/ropensci/glmmcosinor on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2023-11-06
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-15Named in .Rbuildignore: .claudePull request it wrote: opened by a project member
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- unarchivedReturned to CRAN2026-09-15
- 0.2.2Latest
- archivedRemoved from CRAN2026-08-22issues were not corrected in time
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.1
- RR 4.4.0 released · 2024-04-24
- 0.2.02024-01-11
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-01-11
- Total releases
- 3 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 6.1 KB / 2 files
- Download size
- 2.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GLMMcosinor")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.