*! version 1 Fernando Rios-Avila May 2021
help rifmean

Title

rifmean -- Estimate means for recentered influence
functions

Syntax

rifmean varname [if] [in] [weight],
rif(RIF_options) [mean_options]

options

* rif(RIF_options) specify a list of statistics for which
recentered influence functions (RIFs) will be estimated, including their statistic options, separated by a comma; see rifvar() for specifics

mean_options One can use all mean options with this command. The only one that is recycled is the option over(varname). This is used to appropriately estimate the RIF function across different groups.

* rif() is required.

Description

rifmean is a wrapper command that uses the capabilities of mean
to estimate statistics and its standard errors.

Because the command is a wrapper for mean, most options from
mean are available but have not been fully tested.

For the correct estimation of bootstrap standard errors, it is recommended to
use the bootstrap prefix to apply the bootstrap through the whole
estimation process.

rifmean typed without arguments replays the last results.

Examples

. webuse cattaneo2

Simultaneous RIFs across quantiles, and standard deviation.

. rifmean bweight , rif(q(10),q(90),std)

Simultaneous RIFs across quantiles, and standard deviation. Means over mbsmoke.

. rifmean bweight , rif(q(10),q(90),std) over(mbsmoke)

. bootstrap: rifmean bweight , rif(q(10),q(90),std) over(mbsmoke)

Acknowledgments

RIF variables are estimated using the egen add-on rifvar(). An
intuitive description of RIF regressions is provided in Rios-Avila (2020).

All errors are my own.

References

Rios-Avila, F. 2020. Recentered influence functions (RIFs) in Stata: RIF regression and RIF decomposition.
Stata Journal, 20(1), 51-94. https://doi.org/10.1177/1536867X20909690.

Author

Fernando Rios-Avila

Levy Economics Institute of Bard College

Annandale-on-Hudson, NY

friosavi@levy.org

Also see

Help: rifreg, reghdfe, oaxaca_rif,
rifvar(), rifhdreg, rifsureg, uqreg,
hvar() (if installed), [R] sureg, [R] mean