Update on 3/14/2025 The non-central parameter (ncp) formula is corrected as indicated in Dr. Pål O. Westermark's commentary "Minding averages: Comment on “Experimental design and power calculation in omics circadian rhythmicity detection using the cosinor model” by Zong et al.".
library(devtools)
install_github("https://github.com/circaPower/CircaPower")
CircaPower manuscript: Wei Zong, Marianne L. Seney, Kyle D. Ketchesin, Michael T. Gorczyca, Andrew C. Liu, Karyn A. Esser, George C. Tseng, Colleen A. McClung and Zhiguang Huo. Experimental Design and Power Calculation in Omics Circadian Rhythmicity Detection. (: co-coresponding authors)
Commentary (link to be updated): Pål O. Westermark. Minding averages: Comment on “Experimental design and power calculation in omics circadian rhythmicity detection using the cosinor model” by Zong et al.
r = A/σ: Intrinsic effect size. Usually r could be estimated from your pilot data. If there is no pilot data, please refers to the full tutorial, where we documented the intrinsic effect sizes from public databases for varies tissues in human and mouse.
Example 1 (active design): assuming the evenly spaced circadian time distribution (i.e., every 4 hours per cycle).
library(CircaPower)
## Calculate power given (1) sample size n, (2) intrinsic effect size r, and (3) alpha level
CircaPower(n=12, r=1.5, alpha = 0.05)
## Calculate sample size given (1) pre-specified power, (2) intrinsic effect size r, and (3) alpha level
CircaPower(power=0.8, r=1.5, alpha = 0.05)
library(CircaPower)
## Use observed time of death from the human post-mortem brain transcriptomic study on Brodmann's area 11 and 47 in the prefrontal cortex as an example.
data(cts_Chen)
## Calculate power given (1) sample size n, (2) intrinsic effect size r, (3) irregular circadian times and (3) alpha level
CircaPower(n=100, r=0.4, cts=cts_Chen, alpha = 0.05)
## Calculate sample size given (1) pre-specified power, (2) intrinsic effect size r, (3) irregular circadian times and (3) alpha level
CircaPower(power=0.75, r=0.4, cts=cts_Chen, alpha = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.