Description Usage Arguments Details Value Author(s) Examples
View source: R/F_MC_powerCircadian_norm.R
Monte-Carlo circadian power calculation based on F-statistics assuming independent Normal errors
1 2 3 4 5 6 7 8 9 10 11 | F_MC_powerCircadian_norm(
B_MC = 10000,
n,
A,
sigma,
phi = 0,
period = 24,
C = 10,
cts = NULL,
alpha = 0.05
)
|
B_MC |
Numer of Monte-Carlo simulations. Default is 10000. |
n |
Sample size. |
A |
Amplitude of the sine curve: A * sin(2π/period * (phi + cts)) + C. |
sigma |
\sigma in the independent Normal error term N(0,σ). |
phi |
Phase of the sine curve. Default is 0. |
period |
Period of the sine curve. Default is 24. |
C |
Offset of the sine curve. Default is 10. |
cts |
Circadian time design vector. |
alpha |
Type I error control. Default is 0.05. |
Calculate power of circaidan data from Monte-Carlo simulated data assuming independent Normal errors.
A vector of empirical type I error and Monte-Carlo power based on F-statistics.
Wei Zong, Zhiguang Huo
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.