{
  "_id": "69e0705ac5259ad4cd8fc2ae",
  "Type": "Package",
  "Package": "GLMMcosinor",
  "Title": "Fit a Cosinor Model Using a Generalized Mixed Modeling Framework",
  "Version": "0.2.1.9000",
  "Authors@R": "c(\nperson(\"Rex\", \"Parsons\", , \"rex.parsons94@gmail.com\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-6053-8174\")),\nperson(\"Oliver\", \"Jayasinghe\", role = \"aut\"),\nperson(\"Nicole\", \"White\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-9292-0773\")),\nperson(\"Oliver\", \"Rawashdeh\", role = c(\"aut\", \"fnd\"),\ncomment = c(ORCID = \"0000-0002-7147-4778\")),\nperson(\"Prasad\", \"Chunduri\", role = c(\"ctb\", \"fnd\"),\ncomment = c(ORCID = \"0000-0001-7297-7580\")),\nperson(\"Margaret\", \"Doyle\", role = \"ctb\"),\nperson(\"Michael\", \"Sachs\", role = \"rev\",\ncomment = c(ORCID = \"0000-0002-1279-8676\")),\nperson(\"Joaquin\", \"Cavieres\", role = \"rev\",\ncomment = c(ORCID = \"0000-0001-8443-572X\"))\n)",
  "Description": "Allows users to fit a cosinor model using the 'glmmTMB'\nframework. This extends on existing cosinor modeling packages,\nincluding 'cosinor' and 'circacompare', by including a wide\nrange of available link functions and the capability to fit\nmixed models. The cosinor model is described by Cornelissen\n(2014) <doi:10.1186/1742-4682-11-16>.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/ropensci/GLMMcosinor,\nhttps://docs.ropensci.org/GLMMcosinor/",
  "BugReports": "https://github.com/ropensci/GLMMcosinor/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE, roclets = c (\"namespace\", \"rd\",\n\"srr::srr_stats_roclet\"))",
  "RoxygenNote": "7.3.3",
  "Language": "en-US",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev make\nlibicu-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2025-12-04 01:40:03 UTC",
  "RemoteUrl": "https://github.com/ropensci/GLMMcosinor",
  "RemoteRef": "main",
  "RemoteSha": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-04-15 07:55:31 UTC",
    "User": "root"
  },
  "Author": "Rex Parsons [aut, cre] (ORCID: <https://orcid.org/0000-0002-6053-8174>),\nOliver Jayasinghe [aut],\nNicole White [aut] (ORCID: <https://orcid.org/0000-0002-9292-0773>),\nOliver Rawashdeh [aut, fnd] (ORCID:\n<https://orcid.org/0000-0002-7147-4778>),\nPrasad Chunduri [ctb, fnd] (ORCID:\n<https://orcid.org/0000-0001-7297-7580>),\nMargaret Doyle [ctb],\nMichael Sachs [rev] (ORCID: <https://orcid.org/0000-0002-1279-8676>),\nJoaquin Cavieres [rev] (ORCID: <https://orcid.org/0000-0001-8443-572X>)",
  "Maintainer": "Rex Parsons <rex.parsons94@gmail.com>",
  "MD5sum": "dee6bc19ce573787a9bf668df9877afa",
  "_user": "ropensci",
  "_type": "src",
  "_file": "GLMMcosinor_0.2.1.9000.tar.gz",
  "_fileid": "f7e7695b03c5e582e58c8a5283eaac71a43f226cb7356cce8b45333921d1b5e4",
  "_filesize": 6973958,
  "_sha256": "f7e7695b03c5e582e58c8a5283eaac71a43f226cb7356cce8b45333921d1b5e4",
  "_created": "2026-04-15T07:55:31.000Z",
  "_published": "2026-04-16T05:15:06.131Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 71579488526,
      "time": 222,
      "config": "linux-devel-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6466053424"
    },
    {
      "job": 71579488439,
      "time": 210,
      "config": "linux-release-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6466051538"
    },
    {
      "job": 71579488467,
      "time": 130,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6466437138"
    },
    {
      "job": 71579488670,
      "time": 140,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6445640964"
    },
    {
      "job": 71579488497,
      "time": 228,
      "config": "pkgdown",
      "r": "4.5.2",
      "check": "OK",
      "artifact": "6445580692"
    },
    {
      "job": 71579488591,
      "time": 320,
      "config": "source",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6445604017"
    },
    {
      "job": 71579488846,
      "time": 149,
      "config": "wasm-release",
      "r": "4.5.1",
      "check": "OK",
      "artifact": "6445643644"
    },
    {
      "job": 71579488845,
      "time": 224,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6445664282"
    },
    {
      "job": 71579488797,
      "time": 167,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6445648373"
    },
    {
      "job": 71579488721,
      "time": 216,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6445662177"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ropensci/GLMMcosinor",
  "_commit": {
    "id": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
    "author": "Rex Parsons <47549264+RWParsons@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #41 from ropensci/39-vis-functions-are-too-convoluted\n\n39 vis functions are too convoluted",
    "time": 1764812403
  },
  "_maintainer": {
    "name": "Rex Parsons",
    "email": "rex.parsons94@gmail.com",
    "login": "rwparsons",
    "bluesky": "@rexwp.bsky.social",
    "orcid": "0000-0002-6053-8174",
    "uuid": 47549264
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "glmmTMB",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "cosinor",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "DHARMa",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "flextable",
      "role": "Suggests"
    },
    {
      "package": "ftExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-49",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "rwparsons",
      "count": 247,
      "uuid": 47549264
    },
    {
      "user": "oliverjayasinghe",
      "count": 221,
      "uuid": 112680762
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 665,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/GLMMcosinor"
  },
  "_devurl": "https://github.com/ropensci/glmmcosinor",
  "_pkgdown": "https://docs.ropensci.org/GLMMcosinor",
  "_searchresults": 30,
  "_metadata": {
    "review": {
      "id": 603,
      "status": "reviewed",
      "version": "0.1.0",
      "organization": "rOpenSci Software Review",
      "url": "https://github.com/ropensci/software-review/issues/603"
    },
    "ropensci_category": "stat"
  },
  "_rbuild": "4.5.3",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/GLMMcosinor.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropensci/glmmcosinor",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2024-01-11"
    },
    {
      "version": "0.2.1",
      "date": "2024-11-01"
    }
  ],
  "_exports": [
    "amp_acro",
    "autoplot",
    "bell",
    "cglmm",
    "fit_model_and_process",
    "polar_plot",
    "sigma",
    "simulate_cosinor",
    "test_cosinor_components",
    "test_cosinor_levels",
    "update_formula_and_data"
  ],
  "_datasets": [
    {
      "name": "cosinor_mixed",
      "title": "cosinor_mixed dataset for cosinor modeling examples.",
      "object": "cosinor_mixed",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y",
        "times",
        "subject"
      ],
      "rows": 150,
      "table": true,
      "tojson": true
    },
    {
      "name": "vitamind",
      "title": "Vitamin D dataset for cosinor modeling examples.",
      "object": "vitamind",
      "class": [
        "data.frame"
      ],
      "fields": [
        "vit_d",
        "time",
        "X"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "amp_acro",
      "title": "Used to specify a cosinor component in the model formula.",
      "topics": [
        "amp_acro"
      ]
    },
    {
      "page": "autoplot_data_processor",
      "title": "Process data for autoplot",
      "topics": [
        "autoplot_data_processor"
      ]
    },
    {
      "page": "autoplot.cglmm",
      "title": "Plot a cosinor model",
      "topics": [
        "autoplot.cglmm"
      ]
    },
    {
      "page": "cglmm",
      "title": "Fit cosinor model with '{glmmTMB}'",
      "topics": [
        "cglmm"
      ]
    },
    {
      "page": "cosinor_mixed",
      "title": "cosinor_mixed dataset for cosinor modeling examples.",
      "topics": [
        "cosinor_mixed"
      ]
    },
    {
      "page": "fit_model_and_process",
      "title": "Fit the cosinor GLMM model using the output from 'update_formula_and_data()' and a new formula",
      "topics": [
        "fit_model_and_process"
      ]
    },
    {
      "page": "get_background_grid",
      "title": "Create the background for a polar plot.",
      "topics": [
        "get_background_grid"
      ]
    },
    {
      "page": "get_point_estimate_plot",
      "title": "Add a ellipses layer to a polar plot.",
      "topics": [
        "get_point_estimate_plot"
      ]
    },
    {
      "page": "polar_plot",
      "title": "Generates a polar plot with elliptical confidence intervals",
      "topics": [
        "polar_plot"
      ]
    },
    {
      "page": "polar_plot.cglmm",
      "title": "Generates a polar plot with elliptical confidence intervals",
      "topics": [
        "polar_plot.cglmm"
      ]
    },
    {
      "page": "predict.cglmm",
      "title": "Predict from a cosinor model",
      "topics": [
        "predict.cglmm"
      ]
    },
    {
      "page": "print.cglmm",
      "title": "Print a brief summary of the 'cglmm' model.",
      "topics": [
        "print.cglmm"
      ]
    },
    {
      "page": "print.cglmmSubTest",
      "title": "Print test of model",
      "topics": [
        "print.cglmmSubTest"
      ]
    },
    {
      "page": "print.cglmmSummary",
      "title": "Print the summary of a cosinor model",
      "topics": [
        "print.cglmmSummary"
      ]
    },
    {
      "page": "print.cglmmTest",
      "title": "Print results of test of cosinor model",
      "topics": [
        "print.cglmmTest"
      ]
    },
    {
      "page": "sigma.cglmm",
      "title": "Extract residual standard deviation or dispersion parameter",
      "topics": [
        "sigma.cglmm"
      ]
    },
    {
      "page": "simulate_cosinor",
      "title": "Simulate data from a cosinor model",
      "topics": [
        "simulate_cosinor"
      ]
    },
    {
      "page": "sub_ggplot.cglmm.polar",
      "title": "create a (sub) polar plot (iterated over for each component)",
      "topics": [
        "sub_ggplot.cglmm.polar"
      ]
    },
    {
      "page": "summary.cglmm",
      "title": "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.",
      "topics": [
        "summary.cglmm"
      ]
    },
    {
      "page": "test_cosinor_components",
      "title": "Test for differences in a cosinor model between components.",
      "topics": [
        "test_cosinor_components"
      ]
    },
    {
      "page": "test_cosinor_levels",
      "title": "Test for differences in a cosinor model between levels of the grouping variable.",
      "topics": [
        "test_cosinor_levels"
      ]
    },
    {
      "page": "update_formula_and_data",
      "title": "Update data and formula for fitting cglmm model",
      "topics": [
        "update_formula_and_data"
      ]
    },
    {
      "page": "vitamind",
      "title": "Vitamin D dataset for cosinor modeling examples.",
      "topics": [
        "vitamind"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ropensci/GLMMcosinor/raw/main/man/figures/logo.png",
  "_readme": "https://github.com/ropensci/GLMMcosinor/raw/main/README.md",
  "_rundeps": [
    "assertthat",
    "backports",
    "base64enc",
    "boot",
    "broom",
    "cli",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "fracdiff",
    "generics",
    "ggforce",
    "ggplot2",
    "glmmTMB",
    "glue",
    "gtable",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "microbenchmark",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polyclip",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "stringi",
    "stringr",
    "systemfonts",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "TMB",
    "tweenr",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "data-simulations.Rmd",
      "filename": "data-simulations.html",
      "title": "Simulating data",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulating rhythmic data",
        "Understanding the inputs for a simple model",
        "Simulating grouped cosinor data",
        "Simulating multi-component cosinor data"
      ],
      "created": "2023-02-08 02:49:11",
      "modified": "2024-01-11 16:48:43",
      "commits": 20
    },
    {
      "source": "GLMMcosinor.Rmd",
      "filename": "GLMMcosinor.html",
      "title": "GLMMcosinor",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "An brief introduction to the cosinor model",
        "Introduction",
        "cglmm()",
        "A basic overview of cglmm()",
        "Understanding the output",
        "More advanced cglmm() model specification",
        "Using summary() and testing for differences between estimates",
        "Using predict()",
        "Plotting cglmm objects",
        "Large datasets",
        "Assessing residual diagnostics of cglmm regression models using DHARMa",
        "Differential rhythmicity",
        "References"
      ],
      "created": "2023-02-08 02:49:11",
      "modified": "2025-10-30 08:03:43",
      "commits": 48
    },
    {
      "source": "mixed-models.Rmd",
      "filename": "mixed-models.html",
      "title": "Mixed models",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Data with subject-level differences",
        "A single component model with random effects",
        "REML"
      ],
      "created": "2023-02-08 02:49:11",
      "modified": "2025-07-16 06:40:48",
      "commits": 15
    },
    {
      "source": "model-specification.Rmd",
      "filename": "model-specification.html",
      "title": "Model specification",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "cglmm()",
        "Using cglmm()",
        "Specifying a single-component model with no grouping variable",
        "Specifying a single-component model with a grouping variable and a shared MESOR",
        "Specifying a single-component model with a grouping variable and an intercept (MESOR)",
        "Specifying more complicated models using the amp_acro() function",
        "Dispersion and zero-inflation model specification",
        "Using summary(cglmm)"
      ],
      "created": "2023-02-08 02:49:11",
      "modified": "2025-10-30 08:03:43",
      "commits": 29
    },
    {
      "source": "model-visualizations.Rmd",
      "filename": "model-visualizations.html",
      "title": "Visualizing models",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Visualizing cglmm models",
        "Polar plots"
      ],
      "created": "2024-10-31 06:45:00",
      "modified": "2025-10-30 08:03:43",
      "commits": 3
    },
    {
      "source": "multiple-components.Rmd",
      "filename": "multiple-components.html",
      "title": "Multicomponent cosinor modeling",
      "author": "Oliver Jayasinghe and Rex Parsons",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generating a two-component model",
        "Generating a three-component model",
        "Generating models with n-components"
      ],
      "created": "2023-02-08 02:49:11",
      "modified": "2024-10-31 06:45:00",
      "commits": 12
    }
  ],
  "_score": 5.9084850188786495,
  "_indexed": true,
  "_nocasepkg": "glmmcosinor",
  "_universes": [
    "ropensci",
    "rwparsons"
  ],
  "_binaries": [
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.9000",
      "date": "2026-04-16T04:36:59.000Z",
      "distro": "noble",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "59e116ffc4c40569ae4e98c3bf22a24a5fae1b25d050ed27089682f119963e42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.9000",
      "date": "2026-04-16T05:13:47.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "60df4898ccc0afbfb460ad1d567f36d857b5804fe51c80a12b4e6eeb2e65c6dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1.9000",
      "date": "2026-04-15T07:57:24.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "bdb09bb102a3772216d355d3f15e742f69e8a66b450fb96033a822f1d1c6ec80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.5.1",
      "os": "wasm",
      "version": "0.2.1.9000",
      "date": "2026-04-15T07:58:31.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "87a82312c1c65e161c079c245d66e2d45d7a5b8af8dff95743d9e68143a37387",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-04-15T07:58:06.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "91d21f3f662606b0f499abce8ea5aa65740cad7431b705e9a76aa1e76fe41099",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-04-15T07:57:14.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "8d5e0e423b7e63a8cc6f95ef635917bd04f875985e20085f28b3e527e5ec5502",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-04-15T07:58:17.000Z",
      "commit": "bc86b08db1cb47e615d9e091a85cebd2689073d1",
      "fileid": "ccf379bda8282d67f64eba0d7eeeea2205fdf0d5aead6a6e5495b51103ad9f77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/24442857446"
    }
  ]
}