get_rif_variance {rifreg} | R Documentation |
Estimate RIF of variance
Description
Function to estimate the recentered influence function (RIF) of the variance of a weighted distribution of a dependent variable.
Usage
get_rif_variance(dep_var, weights)
Arguments
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 |
Value
A data frame with one column containing the RIF of the variance for each observation and one column containing the weights.
Examples
dep_var <- c(1, 3, 9, 16, 3, 7, 4, 9)
weights <- c(2, 1, 3, 4, 4, 1, 6, 3)
get_rif_variance(dep_var, weights = weights)
[Package rifreg version 0.1.0 Index]