GBQUANT(1)

πŸ“¦
version 6.3 Β· 2 versions
  • 6.3 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– GBQUANT πŸ’–

okay bestie, listen up β€” this is gbquant from the User Commands corner of the manual-verse, and she is that girl for anything quantile-shaped. πŸŽ€


✨ NAME ✨

gbquant β€” print quantiles of data distribution. that's it, that's the whole job, and she does it gorgeously. πŸ’…


🌸 SYNOPSIS 🌸

gbquant [options]

no filenames, no positional drama β€” just vibes and flags. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so, gbquant prints distribution quantiles. the data comes in through standard input β€” she reads from stdin, periodt.

if you don't hand her any -x or -q options, she just plots a quantiles table for you. iconic default behaviour, honestly.

how many quantiles are in that table? that's your call β€” set it with -n.

now the main character options:

  • -x #1 prints the quantile (interpolated) associated with the value #1
  • -q #2 prints the value (interpolated) associated with the quantile #2

and like, obviously #2 has to be between 0 and 1 β€” it's a quantile, bestie, that's the whole range. 🫢

you can pass multiple values to -x or -q, separated with commas. go off.

with -w #1,#2 she prints all the observations inside the quantile range [#1,#2) β€” note that bracket situation, it's closed on the left, open on the right, no cap. πŸ™ˆ

if you gave her more than one column with the -t option, the specified action gets repeated on each column. without -t, columns get pooled β€” unless -w is specified, in which case all rows whose first element is inside the range get printed. little plot twist, but we move. πŸ’€

want a different column for sorting? that's -W. and if you set it to 0, the cut is applied with respect to all columns. slay.

and with -Q, each entry gets replaced with the quantile range it belongs to β€” with respect to the distribution obtained from the entries in its column. very "know your place in the distribution" of her. πŸ‘‘


πŸ’… OPTIONS πŸ’…

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

🌈 EXAMPLES 🌈

the "cut the middle, keep the middle" move:

gbquant -W 0 -w 0.1,0.9 < file
print the rows whose fields are all in the center deciles. 🎯

and the classic "just gimme the middle number" serve:

gbquant -q 0.5 < file
print the median of the observations in 'file'. πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

Written by Giulio Bottazzi. legend behaviour.


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it to <gbutils@googlegroups.com>. they wanna hear it fr fr.

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


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.

no warranty bestie, she's doing her best and that's the legal situation. 😭

and that's the whole page!! this was gbquant 6.1 from March 2019 β€” same manual section GBQUANT(1) as always. go forth and quantile, queen. βœ¨πŸ¦‹πŸ’–