detectMaxChange: Change point detection using max-type statistic as in Jeong...

Description Usage Arguments Value Examples

View source: R/detectMaxChange.R

Description

Change point detection using max-type statistic as in Jeong et. al (2016)

Usage

1
2
3
4
5
6
7
8
9
detectMaxChange(
  Y,
  m = c(30, 40, 50),
  margin = 30,
  thre.localfdr = 0.2,
  design.mat = NULL,
  plotTF = TRUE,
  n.cl
)

Arguments

Y

Input data matrix

m

window sizes

margin

margin

thre.localfdr

threshold for local fdr

design.mat

design matrix for analyzing task data

plotTF

Draw plot to see test statistic and threshold

n.cl

number of clusters for parallel computing

Value

CLX Test statistic correspoding to window size arranged in column

CLXLocalFDR The Local FDR calculated for each time point

br The final estimated break points

Examples

1
out2= detectMaxChange(changesim, m=c(30, 35, 40, 45, 50), n.cl=1)

detectR documentation built on Feb. 8, 2021, 5:06 p.m.