get_clusters2: Count clusters at several levels of z and set threshold

Description Usage Arguments Value

View source: R/get_clusters2.R

Description

Count clusters at several levels of z and set threshold. This function is mostly useful for simulations when all of the smoothed statistics are in one data frame. For larger problems see the vignette.

Usage

1
2
get_clusters2(smoothed.stats, pos, zmin, z0 = 0.3 * zmin, level = c(0.02,
  0.05, 0.1, 0.2), segment.bounds = NULL)

Arguments

smoothed.stats

Matrix of smoothed stats.

pos

Length p vector of positions

zmin

Vector of length 1 or 2

level

Threshold at which to control FDR.

segment.bounds

matrix with two columns giving segment bounds

Value

A list with elements:

clust_num

Matrix of cluster counts nz x (1+n.perm)

bw

Bandwidth used for smoothing

clust

Clusters at zsel

z

All levels looked at

z0

Reference level used for merging

fdr

Estimated fdr at each level

zsel

Selected level of z


jean997/cfdrSims documentation built on May 18, 2019, 11:43 p.m.