powered by
Find locations of change points
which.cp(y1, chest, level = 0.1)
a vector of the differential of sequence Y
output of function ch.est
ch.est
FDR control level
a list of components
a vector of peaks location
a vector of valleys location
a scalar of adjusted p-value based on FDR control
a scalar of threshold for y1
y1
ch.est/fdrBH
fdrBH
# NOT RUN { 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) # }
Run the code above in your browser using DataLab