Tools for Estimating and Predicting the Cosinor Model
Overview
A set of simple functions that transforms longitudinal data to estimate the cosinor linear model as described in Tong (1976). Methods are given to summarize the mean, amplitude and acrophase, to predict the mean annual outcome value, and to test the coefficients.
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Michael Sachs <sachsmc@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Michael",
family = "Sachs",
role = c("aut", "cre"),
email = "sachsmc@gmail.com")
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 15
- Examples that run
- 88%7 run in a plain check · 1 never run
- Exported functions with examples
- 71%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 7%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 29
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/sachsmc/cosinor on 2026-10-25.
Dependencies
Installing cosinor adds 41 packages (23 with compiled code, 37 MB of source tarballs). Heaviest: ggplot2 6.0 MB, bslib 5.6 MB, promises 3.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.2.3Latest2023-03-21 · current release · diff ↗ ·
removed 1 export
ggplot.cosinor.lmadded 1 export
ggplot_cosinor.lm - 1.2.22022-05-24 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 1.1
- 1.02014-07-25
Show 1 earlier eventHide 1 earlier event
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-07-25
- Total releases
- 4 / 12 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.11.0
- Bundled data
- 2.9 KB / 1 file
- Download size
- 48 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cosinor")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.