plotchange: plotchange

Description Usage Arguments Details Value Examples

View source: R/changefunctions.R

Description

Plot the change function that is maximized to find the change point.

Usage

1
plotchange(zvec, rbuff = 25, h = 30, ...)

Arguments

zvec

vector of transformed order statistic of p values

rbuff

right buffer

h

window size

...

any graphical parameters passed to the plot function

Details

Currently there are two types of change functions supported. The difference between first difference series and the difference in gradients at each point. Both of these functions should have a theoretical maximum at the change point. We plot these two series side by side along with indicating the change point.

Value

Nothing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  
## Not run:       
n = 50;m = 250;m0 = 20;
sigeff = 1;
Sigma <- 0.25*diag(m)
X <- datgen(n,m,m0,sigeff,Sigma = Sigma)
porder <- pboot.1sample(X=X,B=100,ncpus = 1)
plotchange(porder[1,])

## End(Not run)

mhtboot documentation built on May 2, 2019, 8:15 a.m.