*! version 0.4.0 09Jun2019

Title

gstats -- Various statistical fucntions and transformations.

Important: Please run gtools, upgrade to update gtools to
the latest stable version.

Syntax

gstats
subcommand
varlist
[if] [in]
[weight]
[, by(varlist) subcommand_options]

gstats is a wrapper for various statistical functions and
transformations, including:

hdfe
(alias residualize) is a fast utility for residualizing variables (i.e. HDFE transform; accepts weights).

winsor
as a fast winsor2 alternative (accepts weights).

summarize and
tabstat are fast,
by-able alternatives to summarize, detail and tabtsat (accept weights).

transform
to apply various statistical transformations (accepts weights).

Description

gstats is a wrapper to several statistical fucntions and
transformations. In theory gegen would be the place to expand
gtools; however, gegen's internally implemented functions
were written with two assumptions: first, the output is unique at the
group level; second, there is always a target variable. gstats
is written to be more flexible and allow arbitrary functions and
transformations.

Weights are supported for the following subcommands: winsor, summarize, tabstat, residualize.

Author

Mauricio Caceres

mauricio.caceres.bravo@gmail.com

mcaceresb.github.io

Website

gstats is maintained as part of the [R] gtools project at github.com/mcaceresb/stata-gtools

Acknowledgment

gtools was largely inspired by Sergio Correia's ftools:
https://github.com/sergiocorreia/ftools.

The OSX version of gtools was implemented with invaluable help from @fbelotti;
see https://github.com/mcaceresb/stata-gtools/issues/11.

Also see

help for
gtools