README.md

False Overlapped-Cluster Rate (FOCR)

Lifecycle:
experimental CRAN
status R-CMD-check

A two-stage procedure to solve the following multiple testing problems with topological constraints:

H0(s) : μ(s) = 0,  H1(s) : μ(s) ≠ 0

In functional data analysis, the underlying function μ(s) may be subject to topological constraints (temporal, spatial, …). The functional domain is also uncountable. It is scientifically meaningful to extract blocks (clusters, or connected regions) of s such that H0(s) are rejected. The FOCR framework controls the type-I error in the following two stages:

FOCR-Definition.svg

Please read vignettes, and help documents for more examples.

Installation

You can install the released version of focr from CRAN with:

install.packages("focr")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("dipterix/focr")

Example

Let’s sample from this 2D image (32x32 pixels). The underlying signal is a triangle. The noise is generated with correlation.

Example code:

res <- focr(data, block_size = 3, alpha = 0.05, 
            fdr_method = 'BH', dimension = c(32,32))

The initial clusters, conditional p-values, and final rejections are displayed as follows:

Further reading materials: vignettes, and help documents.

Citations



dipterix/focr documentation built on Dec. 20, 2021, 12:03 a.m.