2.13.1.7 freqcounts

Menu Information

Statistics: Descriptive Statistics: Frequency Counts

Brief Information

Compute frequency count

Command Line Usage

  1. freqcounts irng:=col(1) bin:=center outleft:=1 outright:=1;
  2. freqcounts irng:=col(1) cmin:=1 cmax:=1 freq:=1 show:=percent;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input irng

Input

Range

<active>
Specify the input data range. Note that beginning with Origin 2020b, there is a shortened syntax that follows the form [Book]Sheet!(N1:N2), N1 = the beginning column index and N2 being the ending column index in a contiguous range of columns. More complex strings from non-contiguous data of the form [Book]Sheet!([Book]Sheet!N1:N2,[Book]Sheet!N3:N4) are also possible.
Specify Binning Range by bin

Input

int

1
Specify what is the binning range indicated.

Option list:

  • center:Bin Centers
    Binning range is indicated by bin centers.
  • end:Bin Ends
    Binning range is indicated by bin ends.
  • custom:User-Defined Boundaries
    Specify the Binning range by yourself.
User-Defined Boundaries bins

Input

vector

Specify a binning range manually for the computation.
From Minimum min

Input

double

<auto>
Specify the minimum value for the bin beginning.
To Maximum max

Input

double

<auto>
Specify the maximum value for the bin end.
Step by stepby

Input

int

0
Specify the stepping methods to generate bins. This variable is invisible in GUI.

Option list:

  • increment:Increment
    Step increment for bins.
  • interval:Intervals
    Number of intervals within the data range.
Increment inc

Input

double

<auto>
Specify the fixed step size for bins.
Number of Intervals intervals

Input

double

It is generated automatically by the bin range and increment.
Include Outliers < Minimum outleft

Input

int

0
Specify whether or not outliers which are less than minimum will be included into the lowest bin.
Include Outliers >= Maximum outright

Input

int

0
Specify whether or not outliers which are not less than maximum will be included into the highest bin.
Separately Count Minimum cmin

Input

int

0
Specify whether or not to consider the minimum separately as one bin.
Separately Count Maximum cmax

Input

int

0
Specify whether or not to consider the maximum separately as one bin.
Bin Center center

Input

int

1
Specify whether or not to compute and output the bin center.
Bin End end

Input

int

1
Specify whether or not to compute and output bin end.
Count count

Input

int

1
Specify whether or not to compute and output counts for each bin.
Cumulative Count cumulcount

Input

int

1
Specify whether or not to compute and output cumulative counts for each bin.
Relative Frequency freq

Input

int

0
Specify whether or not to compute and output the relative frequency for each bin.
Cumulative Frequency cumulfreq

Input

int

0
Specify whether or not to compute and output the cumulative frequency for each bin.
Frequency in show

Input

int

0
Specify the show mode of the frequency. It is only available when Relative Frequency or Cumulative Frequency is checked.

Option list:

  • fraction:Fraction
    The frequency will be shown as fraction if it is checked.
  • percent:Percent
    The frequency will be shown as percent if it is checked.
Output rd

Output

ReportData

[<input>]<new>
Specify the output report worksheet.

More Information

For more information,please refer to our User Guide.

Related X-Functions

stats, discfreqs


Keywords:bins, binning, cumulative, relative, center, boundaries