pkstatascii(1)

NAME
pkstatascii - program to calculate basic statistics from text file

SYNOPSIS
\FCpkstatascii\F[]
\FC-i\F[] input [\FC-c\F[] column] [options] [advanced options]

DESCRIPTION
pkstatascii calculates basic statistics of a data series in a text file.

OPTIONS

\FC-i\F[] filename, \FC--input\F[] filename
    name of the input text file

\FC-size\F[], \FC--size\F[]
    sample size

\FC-rnd\F[] number, \FC--rnd\F[] number
    generate random numbers

\FC-dist\F[] function, \FC--dist\F[] function
    distribution for generating random numbers, see http://www.gn/software/gsl/manual/gsl-ref_toc.html#TOC320 (only uniform and Gaussian supported yet)

\FC-rnda\F[] value, \FC--rnda\F[] value
    first parameter for random distribution (mean value in case of Gaussian)

\FC-rndb\F[] value, \FC--rndb\F[] value
    second parameter for random distribution (standard deviation in case of Gaussian)

\FC-mean\F[], \FC--mean\F[]
    calculate mean

\FC-median\F[], \FC--median\F[]
    calculate median

\FC-var\F[], \FC--var\F[]
    calculate variance

\FC-stdev\F[], \FC--stdev\F[]
    calculate standard deviation

\FC-skew\F[], \FC--skewness\F[]
    calculate skewness

\FC-kurt\F[], \FC--kurtosis\F[]
    calculate kurtosis

\FC-sum\F[], \FC--sum\F[]
    calculate sum of column

\FC-mm\F[], \FC--minmax\F[]
    calculate minimum and maximum value

\FC-min\F[], \FC--min\F[]
    calculate minimum value

\FC-max\F[], \FC--max\F[]
    calculate maximum value

\FC-hist\F[], \FC--hist\F[]
    calculate histogram

\FC-hist2d\F[], \FC--hist2d\F[]
    calculate 2-dimensional histogram based on two columns

\FC-nbin\F[] value, \FC--nbin\F[] value
    number of bins to calculate histogram

\FC-rel\F[], \FC--relative\F[]
    use percentiles for histogram to calculate histogram

\FC-kde\F[], \FC--kde\F[]
    Use density estimation when producing histogram. The standard deviation is estimated based on Silverman's rule of thumb

\FC-cor\F[], \FC--correlation\F[]
    calculate Pearson produc-moment correlation coefficient between two columns (defined by \FC-c\F[] <col1> \FC-c\F[] <col2>)

\FC-rmse\F[], \FC--rmse\F[]
    calculate root mean square error between two columns (defined by \FC-c\F[] <col1> \FC-c\F[] <col2>)

\FC-reg\F[], \FC--regression\F[]
    calculate linear regression between two columns and get correlation coefficient (defined by \FC-c\F[] <col1> \FC-c\F[] <col2>)

\FC-regerr\F[], \FC--regerr\F[]
    calculate linear regression between two columns and get root mean square error (defined by \FC-c\F[] <col1> \FC-c\F[] <col2>)

\FC-v\F[] level, \FC--verbose\F[] level
    verbose mode when positive

Advanced options

\FC-src_min\F[] value, \FC--src_min\F[] value
    start reading source from this minimum value

\FC-src_max\F[] value, \FC--src_max\F[] value
    stop reading source from this maximum value

\FC-fs\F[] separator, \FC--fs\F[] separator
    field separator.

\FC-r\F[] startrow [\FC-r\F[] endrow], \FC--range\F[] startrow [\FC--range\F[] endrow]
    rows to start/end reading. Use \FC-r\F[] 1 \FC-r\F[] 10 to read first 10 rows where first row is header. Use 0 to read all rows with no header.

\FC-o\F[], \FC--output\F[]
    output the selected columns

\FC-t\F[], \FC--transpose\F[]
    transpose input ascii vector (use in combination with \FC--output\F[])

\FC-comment\F[] character, \FC--comment\F[] character
    comment character