
Recentered influence function of a quantile, and the gap it carries
Source:R/ledger_1_4_3.R
morie_rif_quantile.RdThe RIF of the \(\tau\)-quantile at a point \(q\) with density \(f\) is
\(q + (\tau - 1\{y \le q\})/f\); its weighted mean is \(q + (\tau - F(q))/f\)
(Research.P15.RIF.rif_quantile_avg) and equals \(q\) exactly when
\(F(q) = \tau\) (rif_quantile_avg_eq_iff). The gap between two groups'
RIF means is the quantile gap plus the two recentering terms (rif_gap).
Usage
morie_rif_quantile(y, tau, weights = NULL, q = NULL, f = NULL)
morie_rif_gap(yA, yB, tau, wA = NULL, wB = NULL)Value
A list with rif (one value per outcome), q, f,
F_q (weighted share at or below q), mean_rif and
recentering (\((\tau - F(q))/f\), zero at the sample quantile).
For morie_rif_gap: a list with the two groups' RIF results, gap
(difference of RIF means), quantile_gap and recentering_gap, with
gap = quantile_gap + recentering_gap.