print_optbin: Printing Optimal Bins

print.optbinR Documentation

Printing Optimal Bins

Description

print method for class optbin.

Usage

## S3 method for class 'optbin'
print(x, ...)

Arguments

x

an object of class optbin.

...

generic arguments (ignored)

Details

Shows the upper bounds of each bin, ie. bin b covers threshold[b-1] < x <= threshold[b] where threshold[0] is -Inf. Also prints the total (mean) squared error sum over all bins.

Value

The argument x unchanged, an object of class 'optbin' with components:

x

the original data, sorted

numbins

the number of bins created

call

argument values when function called

metric

cost function used to select best partition

minse

value of SE/MSE metric for all bins

thr

upper threshold of bin range, inclusive

binavg

average of values in each bin

binse

value of SE/MSE metric for each bin

breaks

positions of endpoint (inclusive) of each bin in x

See Also

optbin, summary.optbin


optbin documentation built on Sept. 20, 2022, 1:06 a.m.

Related to print_optbin in optbin...