Statistics: Descriptive Statistics: Discrete Frequency
Calculate frequency for discrete/categorical data
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);
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Data Form | type |
Input int |
|
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 |
|
Specify the data to perform discrete frequency analysis. |
Count | freq |
Input int |
|
Specify whether to calculate the count or not. |
Relative Frequency | perc |
Input int |
|
Specify whether to calculate the relative frequency or not. |
Cumulative Frequency | cumul |
Input int |
|
Specify whether to calculate the cumulative frequency or not. |
Frequency in | show |
Input int |
|
Specify the show mode of the frequency. It is only available when Relative Frequency or Cumulative Frequency is checked.
Option list:
|
Case Sensitive | sensitive |
Input int |
|
Specify whether or not uppercases and lowercases are considered differently. |
Show Zero Count Categories | zero |
Input int |
|
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 |
|
Specify the output columns sorting order.
Option list:
|
Output Results | rd |
Output ReportData |
|
Output the results of the discrete frequency analysis. |
For more information,please refer to our User Guide.