get_breakshbr: Function that computes breaks for approximate Big data...

Description Usage Arguments Examples

View source: R/get_breakshbr.R

Description

Computes breaks for approximate Big data scores. Written by John Kloke for the package bigRfit.

Usage

1
get_breakshbr(ehat, B, eps = (.Machine$double.eps)^0.5)

Arguments

ehat
B
eps

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (ehat, B, eps = (.Machine$double.eps)^0.5) 
{
    breaks <- quantile(ehat, seq(0, 1, length = B))
    ind <- c(1, length(breaks))
    breaks[ind] <- breaks[ind] + eps * sd(breaks) * c(-1, 1)
    unique(breaks)
  }

joemckean/rewtedhbr documentation built on Jan. 17, 2019, 12:44 a.m.