periodogram_methods {zeitgebr}R Documentation

Methods For Computing Periodograms

Description

These functions provides a series of methods to assess periodicity of circadian processes.

Usage

ac_periodogram(
  x,
  period_range = c(hours(16), hours(32)),
  sampling_rate = 1/mins(1),
  alpha = 0.05
)

chi_sq_periodogram(
  x,
  period_range = c(hours(16), hours(32)),
  sampling_rate = 1/mins(1),
  alpha = 0.05,
  time_resolution = hours(0.1)
)

cwt_periodogram(
  x,
  period_range = c(hours(16), hours(32)),
  sampling_rate = 1/mins(1),
  alpha = 0.05,
  resolution = 1/512,
  n_sim = 10
)

fourier_periodogram(
  x,
  period_range = c(hours(16), hours(32)),
  sampling_rate = 1/mins(1),
  alpha = 0.05
)

ls_periodogram(
  x,
  period_range = c(hours(16), hours(32)),
  sampling_rate = 1/mins(1),
  alpha = 0.05,
  oversampling = 8
)

Arguments

x

numeric vector

period_range

vector of size 2 defining minimal and maximal range of period to study (in seconds)

sampling_rate

the – implicitly regular – sampling rate of x (in hertz)

alpha

significance level

time_resolution

the resolution of periods to scan

resolution

the period resolution of the CWT (i.e. the number of suboctaves)

n_sim

the number of shuffling simulation to compute p-value (see WaveletComp::analyze.wavelet)

oversampling

the oversampling factor (see lomb::lsp)

Value

a data.table::data.table with the columns:

References

See Also


[Package zeitgebr version 0.3.6 Index]