<stats:bin_column>

Computes bin locations and bin counts/density.

Description

<stats:boxplot> bins the data in COL and returns a row for each non-empty bin showing its lower edge and the number of values counted in it.

(Available as of version 21.00)

Syntax

<stats:bin_column breaks="[BREAKS]" column="[COL]" remove_na="1|0" cnt_name="[CNT_NAME]" nbins="[NUM BINS]" 
                cnt_as_text="0|1" sort="up|down"  min="[MINIMUM]" max="[MAXIMUM]" scale="linear|log10" density="0|1" binbybrks="0|1"/>

Attributes

breaks
Perform binning for each break.
column
Perform binning for COL.
remove_na
Convenience attribute to select out NAs before binning; default is 1.
cnt_name
Set name of the counr result; defaults to count.
nbins
Number of bins; defaults to 20. Ignored if COL is of type text or cnt_as_text is 1.
cnt_as_text
If COL is numeric and cnt_as_text="1", bins are computed as text type; defaults to 0.
sort
Sort all breaks in increasing (up) or decreasing (down) order; defaults to up.
min
Select minimum value; may be helpful for highly skewed data. Ignored if binbybrks is 1. This is the floor of the lowest bin, and any values less than this will not be counted.
max
Select maximum value; may be helpful for highly skewed data. Ignored if binbybrks is 1. Note that this is floor of the highest bin, and unlike min, does not exclude any values from being counted. Any value larger than this simply winds up in the top bin.
scale
Compute binning in linear or log10 scale; defaults to linear.
density
Compute density for each bin; defaults to 0.
binbybrks
If 1, the determination of the bin locations is performed separately for each break. If 0, all breaks share the same bin locations. Default is 0.