get_rif_quantiles | R Documentation |
Function to estimate the recentered influence function (RIF) at one or several specified quantiles of a weighted distribution of a dependent variable.
get_rif_quantiles(dep_var, weights, probs, ...)
get_rif_quantile(dep_var, weights, probs, ...)
dep_var |
dependent variable of a distributional function. Discrete or continuous numeric vector. |
weights |
numeric vector of non-negative observation weights, hence of same length as |
probs |
the specific quantile at which to estimate the RIF. |
... |
further arguments passed on to density. |
A data frame with the number of columns equaling the length of vector probs
and an additional column containing the weights.
Each column contains the RIF values at the quantile's probabilities.
get_rif_quantile()
: Helper function to estimate the RIF values at a specific quantile.
dep_var <- c(1, 3, 9, 16, 3, 7, 4, 9)
probs <- seq(1:9) / 10
weights <- c(2, 1, 3, 4, 4, 1, 6, 3)
get_rif_quantiles(dep_var, probs, weights = weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.