sta - Man Page

simple statistics from the command line

Description

sta is a lightweight, fast tool for calculating basic descriptive statistics from the command line. Inspired by st, this project differs in that it is written in C++, allowing for faster computation of statistics given larger non-trivial data sets. Additions include the choice of biased vs unbiased estimators and the option to use the compensated variant algorithm.

sta takes data from standard input, one value per line.

Options

Descriptive statistics

To control which statistics are calculated, the following options can be used. Multiple options can be specified.

--max

Maximum value.

--mean

Average value.

--median

Median value.

--min

Minimum value.

--n

Sample size.

--p LIST

Comma seperated list of percentiles.

--q

Quartiles (all).

--q1

First quartile only.

--q3

Third quartile only.

--sd

Standard deviation.

--sderr

Standard error of the mean.

--sum

Sum of all values.

--var

Variance.

If none of the above options are specified, sta will print the following values: number of samples, minimum, maximum, sum, mean, standard deviation, standard error.

Other

--brief

Brief mode. Only the values are output; all headers are skipped.

--compensated

Calculate variance using the compensated variant algorithm.

--delimiter STRING

Specify string to use as delimiter.

--fixed

Print fractional numbers in fixed-precision notation.

--help

Print a help message and exit.

--sample

Unbiased estimator (n-1) to use with sample scores. sta, by default, assumes you have a population of scores, and thus normalises with N. If in fact you have a sample of scores, and wish to know the expected population standard deviation/variance, use this option.

--transpose

Transpose output - print all values on separate lines.

Info

2024-12-19 User commands