Skip to contents

Runs fdatest::ITP2bspline() to compare two groups of functional observations evaluated on the same grid.

Usage

functional_interval_test(
  group0,
  group1,
  n_permutations = 1000,
  alpha = 0.05,
  time = NULL,
  quiet = TRUE,
  min_interval_length = 1
)

Arguments

group0

Numeric matrix for the reference group.

group1

Numeric matrix for the comparison group.

n_permutations

Number of permutations used by the interval-wise test.

alpha

Significance level used when extracting intervals.

min_interval_length

Minimum number of consecutive tested time points required for an interval to be retained. For daily series, this is the minimum number of consecutive days. Defaults to 1. This post-test filter does not alter the corrected p-values.

time

Numeric vector of time values corresponding to matrix columns.

quiet

Logical; if TRUE, suppresses routine console output emitted by fdatest::ITP2bspline().

Value

A list with the raw test object, corrected p-values and indicators for threshold crossing and interval retention, the threshold-crossing and retained time values, and a table of retained intervals.