Package: GLMMcosinor 0.2.1.9000

Rex Parsons

GLMMcosinor: Fit a Cosinor Model Using a Generalized Mixed Modeling Framework

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>.

Authors:Rex Parsons [aut, cre], Oliver Jayasinghe [aut], Nicole White [aut], Oliver Rawashdeh [aut, fnd], Prasad Chunduri [ctb, fnd], Margaret Doyle [ctb], Michael Sachs [rev], Joaquin Cavieres [rev]

GLMMcosinor_0.2.1.9000.tar.gz
GLMMcosinor_0.2.1.9000.zip(r-4.6)GLMMcosinor_0.2.1.9000.zip(r-4.5)GLMMcosinor_0.2.1.9000.zip(r-4.4)
GLMMcosinor_0.2.1.9000.tgz(r-4.6-any)GLMMcosinor_0.2.1.9000.tgz(r-4.5-any)
GLMMcosinor_0.2.1.9000.tar.gz(r-4.6-any)GLMMcosinor_0.2.1.9000.tar.gz(r-4.5-any)
GLMMcosinor_0.2.1.9000.tgz(r-4.5-emscripten)
GLMMcosinor.pdf |GLMMcosinor.html
GLMMcosinor/json (API)
NEWS

# Install 'GLMMcosinor' in R:
install.packages('GLMMcosinor', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #603

Bug tracker:https://github.com/ropensci/glmmcosinor/issues

Pkgdown/docs site:https://docs.ropensci.org

Datasets:
  • cosinor_mixed - Cosinor_mixed dataset for cosinor modeling examples.
  • vitamind - Vitamin D dataset for cosinor modeling examples.

On CRAN:

Conda:

5.91 score 3 stars 30 scripts 663 downloads 11 exports 71 dependencies

Last updated from:bc86b08db1 (on main). Checks:1 ERROR, 9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR242
pkgdown docsOK281
source / vignettesOK296
linux-release-x86_64OK208
macos-devel-arm64OK149
macos-release-arm64OK111
windows-develOK172
windows-releaseOK157
windows-oldrelOK190
wasm-releaseOK152

Exports:amp_acroautoplotbellcglmmfit_model_and_processpolar_plotsigmasimulate_cosinortest_cosinor_componentstest_cosinor_levelsupdate_formula_and_data

Dependencies:assertthatbackportsbase64encbootbroomclicolorspacecowplotcpp11DerivdoBydplyrfarverforecastfracdiffgenericsggforceggplot2glmmTMBgluegtableisobandjsonlitelabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixmgcvmicrobenchmarkminqamodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpolyclippurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesstringistringrsystemfontstibbletidyrtidyselecttimeDateTMBtweenrurcautf8vctrsviridisLitewithrzoo

Simulating data

Rendered fromdata-simulations.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2024-01-11
Started: 2023-02-08

GLMMcosinor

Rendered fromGLMMcosinor.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2025-10-30
Started: 2023-02-08

Mixed models

Rendered frommixed-models.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2025-07-16
Started: 2023-02-08

Model specification

Rendered frommodel-specification.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2025-10-30
Started: 2023-02-08

Visualizing models

Rendered frommodel-visualizations.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2025-10-30
Started: 2024-10-31

Multicomponent cosinor modeling

Rendered frommultiple-components.Rmdusingknitr::rmarkdownon Mar 16 2026.

Last update: 2024-10-31
Started: 2023-02-08

Readme and manuals

Help Manual

Help pageTopics
Used to specify a cosinor component in the model formula.amp_acro
Process data for autoplotautoplot_data_processor
Plot a cosinor modelautoplot.cglmm
Fit cosinor model with '{glmmTMB}'cglmm
cosinor_mixed dataset for cosinor modeling examples.cosinor_mixed
Fit the cosinor GLMM model using the output from 'update_formula_and_data()' and a new formulafit_model_and_process
Create the background for a polar plot.get_background_grid
Add a ellipses layer to a polar plot.get_point_estimate_plot
Generates a polar plot with elliptical confidence intervalspolar_plot
Generates a polar plot with elliptical confidence intervalspolar_plot.cglmm
Predict from a cosinor modelpredict.cglmm
Print a brief summary of the 'cglmm' model.print.cglmm
Print test of modelprint.cglmmSubTest
Print the summary of a cosinor modelprint.cglmmSummary
Print results of test of cosinor modelprint.cglmmTest
Extract residual standard deviation or dispersion parametersigma.cglmm
Simulate data from a cosinor modelsimulate_cosinor
create a (sub) polar plot (iterated over for each component)sub_ggplot.cglmm.polar
Summarize a cosinor model Given a time variable and optional covariates, generate inference a cosinor fit. Gives estimates, confidence intervals, and tests for the raw parameters, and for the mean, amplitude, and acrophase parameters. If the model includes covariates, the function returns the estimates of the mean, amplitude, and acrophase for the group with covariates equal to 1 and equal to 0. This may not be the desired result for continuous covariates.summary.cglmm
Test for differences in a cosinor model between components.test_cosinor_components
Test for differences in a cosinor model between levels of the grouping variable.test_cosinor_levels
Update data and formula for fitting cglmm modelupdate_formula_and_data
Vitamin D dataset for cosinor modeling examples.vitamind