Scroll to navigation

GBQUANT(1) User Commands GBQUANT(1)

NAME

gbquant - Print quantiles of data distribution

SYNOPSIS

gbquant [options]

DESCRIPTION

Print distribution quantiles. Data are read from standard input. If no -x or -q options are provided, a quantiles table is plotted. The number of quantiles can be chosen with -n. The option -x #1 prints the quantile associated with the value #1, while -q #2 print the value associate with the quantile #2. Of course #2 must be between 0 and 1. Multiple values can be provided to -x or -q, separated with commas. With -w #1,#2 all the observations inside the quantile range [#1,#2) are printed. If more columns are provided with option -t, the specified action is repeated on each column. Without -t, columns are pooled unless -w is specified, in which case all rows whose first element is inside the range are printed. A different column for sorting can be specified with option -W. If 0 is specified, the cut is applied with respect to all columns. With option -Q each entry is replaced with the quantile range it belongs to, with respect to the distribution obtained from the entries in its column.

OPTIONS

number of quantiles to print (default 10)
print the quantile (interpolated) associated with the value
print the value (interpolated) associated with the quantile
print the (asymptotic) error for -x or -q; doesn't work with -t
replace each element with the quantile range it belongs to
print observations inside a quantile windows
set the column to use (default 1)
consider separately each column of input
specify the input fields separators (default " \t")
this help
verbose mode

EXAMPLES

print the rows whose fields are all in the center deciles.
print the median of the observations in 'file'.

AUTHOR

Written by Giulio Bottazzi

REPORTING BUGS

Report bugs to <gbutils@googlegroups.com>

Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>

COPYRIGHT

Copyright © 2001-2018 Giulio Bottazzi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

March 2019 gbquant 6.1