which.cp {mSTEM}R Documentation

Find locations of change points

Description

Find locations of change points

Usage

which.cp(y1, chest, level = 0.1)

Arguments

y1

a vector of the differential of sequence Y

chest

output of function ch.est

level

FDR control level

Value

a list of components

peak

a vector of peaks location

vall

a vector of valleys location

pval

a scalar of adjusted p-value based on FDR control

thresh

a scalar of threshold for y1

See Also

ch.est/fdrBH

Examples

mu = GenMu(x=1:10,pos=seq(10,100,10),size=150)
z = GenZ(nu=2,size=150)
y1 = GenDY(mu,z,gamma=4)
chest = ch.est(nu=2,gamma=8,size=150,B=100)
which.cp(y1,chest,level=0.1)

[Package mSTEM version 1.0-1 Index]