Learn R Programming

DODR (version 0.99.2)

robustDODR: Asymmetric variant of Chow method applied on harmonic regression

Description

Asymmetric variant of Chow method applied on harmonic regression

Usage

robustDODR(val1, val2, times1, times2, period, norm = TRUE)

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.

Value

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

Details

This test uses a robust Fitting drop test 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.