cut3: cut3

View source: R/cut3.R

cut3R Documentation

cut3

Description

Hmisc::cut2 bones repackaged to remove errors with importing Hmisc

Usage

cut3(
  x,
  cuts,
  m = 150,
  g,
  digits,
  minmax = TRUE,
  oneval = TRUE,
  onlycuts = FALSE,
  formatfun = format,
  ...
)

Arguments

x

numeric vector to classify into intervals.

cuts

cut points.

m

desired minimum number of observations in a group. The algorithm does not guarantee that all groups will have at least m observations.

g

number of quantile groups

digits

number of significant digits to use in constructing levels.

minmax

if cuts is specified but min(x)<min(cuts) or max(x)>max(cuts), augments cuts to include min and max x

oneval

if an interval contains only one unique value, the interval will be labeled with the formatted version of that value instead of the interval endpoints, unless oneval=FALSE

onlycuts

set to TRUE to only return the vector of computed cuts. This consists of the interior values plus outer ranges.

formatfun

format function

...

additional arguments passed to formatfun

Value

vector of cut


prettyglm documentation built on Sept. 8, 2023, 5:56 p.m.