getTbreak: Get breaks for binning of data points

Description Usage Arguments Value Examples

View source: R/getTbreak.R

Description

Get breaks for binning of data points

Usage

1
2
getTbreak(x, tbreak.num = 10, break.thres = 10, useExt = FALSE,
  useQuantile = FALSE)

Arguments

x

A vector of input data points

tbreak.num

Number of breaks

break.thres

A threshold to decide whether use breaks from logs cale or not. We decide to use breaks from log scale if 75 percent of input data less than this threshold

useExt

An option to extend the last bin to infinity or not

useQuantile

An option to bin the data points by equal-size quantile values

Value

A vector of break values

Examples

1
2
3
set.seed(2015)
bp.vec=rBP(100,alp=0.6,bet=1.5,lam1=20,lam2=0.05)
tbreak=getTbreak(bp.vec,tbreak.num=10)

nghiavtr/BPSC documentation built on May 23, 2019, 4:42 p.m.