F_powerCircadian: F-statistics-based Theoretical Circadian Power Calculation

Description Usage Arguments Details Value Author(s) Examples

View source: R/F_powerCircadian.R

Description

Theoretical circadian power calculation based on F-statistics

Usage

1
F_powerCircadian(n, A, sigma, phi = 0, period = 24, cts = NULL, alpha = 0.05)

Arguments

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.

cts

Circadian time design vector.

alpha

Type I error control. Default is 0.05.

Details

Theoretically calculate power of circaidan data under indepednent Normal error assumption using F-statistics.

Value

Theoretucal power based on F-statistics.

Author(s)

Wei Zong, Zhiguang Huo

Examples

1
2
3
4
5
6
7
n = 100
cts = seq(0,24,length.out = n+1)[-1]
A = 1
sigma = 1
phi = 0
C = 10
F_powerCircadian(n, A, sigma, phi=0, period = 24, cts=cts, alpha = 0.05)

weiiizong/powerCircadian documentation built on Dec. 23, 2021, 5:09 p.m.