which.cp: Find locations of change points

Description Usage Arguments Value See Also Examples

View source: R/main.R

Description

Find locations of change points

Usage

1
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

1
2
3
4
5
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)

mSTEM documentation built on Oct. 2, 2019, 5:03 p.m.