R/getFailure.R

Defines functions `getFailure`

`getFailure` <-
function(z.perm,z,interval,z.norm=NULL,z.range=NULL,n.interval=139){
	if(is.null(z.norm))
		z.perm<-truncZ(z.perm,z.range[1],z.range[2])
	else{
		z.sort<-sort(z)
		z.perm<-approx(z.sort,z.norm,z.perm,rule=2)$y
	}
	bin<-cut(z.perm,interval,include.lowest=TRUE)
	tabulate(bin,n.interval)
}

Try the siggenes package in your browser

Any scripts or data that you put into this service are public.

siggenes documentation built on Nov. 8, 2020, 6:26 p.m.