R/segbg.R

"segbg" <-
function(f2, prob=0.25, breaks=100) {
        x <- f2[,1]
        y <- f2[,2]
	rx <- range(x)
        bc <- cut(log10(x+abs(min(x))+0.5), breaks=breaks)
        unlist(lapply(split(y, bc), trnc, prob=prob))
}

Try the PROcess package in your browser

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

PROcess documentation built on Nov. 8, 2020, 5:44 p.m.