get_rif_interquantile_range | R Documentation |
Compute the recentered influence function (RIF) of a weighted interquantile range.
get_rif_interquantile_range(dep_var, weights, probs, ...)
dep_var |
dependent variable of distributional function. Discrete or continuous numeric vector. |
weights |
numeric vector of non-negative observation weights, hence of same length as |
probs |
a vector of length 2 with probabilities corresponding to the limits of the interquantile range of interest. The interquantile range is defined as difference between the quantile with the larger probability and the one with the lower probability. |
... |
further arguments passed on to density. |
A data frame with one column containing the RIF of the interquantile range for each observation and one column containing the weights.
Firpo, Sergio P., Nicole M. Fortin, and Thomas Lemieux. 2018. “Decomposing Wage Distributions Using Recentered Influence Function Regressions.” Econometrics 6(2), 28.
set.seed(123)
dep_var <- rlnorm(100)
weights <- rep(1, 100)
get_rif_interquantile_range(dep_var, probs = c(0.1, 0.9), weights = weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.