2.13.1.4 discfreqs


Menu Information

Statistics: Descriptive Statistics: Discrete Frequency

Brief Information

Calculate frequency for discrete/categorical data

Command Line Usage

1. discfreqs irng:=col(1) freq:=1 perc:=1 show:=percent;

2. discfreqs -r 2 irng:=[Book1]Sheet1!A zero:=1;

3. discfreqs type:=0 irng:=[Book1]Sheet1!(A,B);

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 Data Form type

Input

int

1
Specify whether the input data is in indexed form or raw form. 0=Indexed, 1=Raw.

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.
Input irng

Input

Range

<active>
Specify the data to perform discrete frequency analysis.
Count freq

Input

int

1
Specify whether to calculate the count or not.
Relative Frequency perc

Input

int

0
Specify whether to calculate the relative frequency or not.
Cumulative Frequency cumul

Input

int

0
Specify whether to calculate the cumulative frequency or not.
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 selected.
  • percent:Percent
    The frequency will be shown as percent if it is selected.
Case Sensitive sensitive

Input

int

0
Specify whether or not uppercases and lowercases are considered differently.
Show Zero Count Categories zero

Input

int

0
Specify whether to list a category and show 0 as its count data when the category is not found.
Sort Data by sort

Input

int

1
Specify the output columns sorting order.

Option list:

  • casc{0}:Ascending Counts
    Sort output columns in ascending order according to counts.
  • cdesc{1}:Descending Counts
    Sort output columns in descending order according to counts.
  • vasc{2}:Ascending Values
    Sort output columns in ascending order according to values.
  • vdesc{3}:Descending Values
    Sort output columns in descending order according to values.
  • cat{4}:Categorical Order
    Sort output columns order according to categorical order.
Output Results rd

Output

ReportData

[<input>]<new>
Output the results of the discrete frequency analysis.

More Information

For more information,please refer to our User Guide.

Related X-Functions

stats, freqcounts