Learn R Programming

DODR (version 0.99.2)

HANOVA: ANOVA applied on harmonic regression

Description

Detection of differential between rhythms in two time series using llsq fits and ANOVA

Usage

HANOVA(val1, val2, times1, times2, period, norm = TRUE, verbose = options("verbose")[[1]])

Arguments

val1
matrix: data for values in first set. One column per sample, one row per time point
val2
matrix: data for values in second set. One column per sample, one row per time point
times1
vector: times of first set.
times2
vector: times of second set.
period
numeric: period of the oscillations. Same unit as the time points in times1 and times2
norm
boolean: whether to normalize the time series (division by mean), prior to the analysis.
verbose
boolean: verbosity.

Value

data frame with columns:
  • p.value: P-value for difference between the two time series
  • F: F score from the underlying ANOVA test
  • diff: Measure for the difference between the two fits

Details

This test uses general ANOVA to test for differences between two time series. Therefore the time series are fitted to sine curves with a fixed period length and free phase and amplitude. In one case phase and amplitude have two be the same for both series, in the other case phase and amplitude could differ for the two series.