dfl_decompose_estimate {ddecompose}  R Documentation 
Estimate the DFL reweighting decomposition
Description
This function performs the DFL decomposition. It derives the reweighting factors, estimates the distributional statistics and calculates the decomposition terms.
Usage
dfl_decompose_estimate(
formula,
dep_var,
data_used,
weights,
group_variable,
reference_group,
method,
estimate_statistics,
statistics,
probs,
custom_statistic_function,
right_to_left,
trimming,
trimming_threshold,
return_model,
estimate_normalized_difference,
...
)
Arguments
formula 

dep_var 
dependent variable 
data_used 

weights 
weights variable 
group_variable 
group variable 
reference_group 
reference_group to be reweighted 
method 
method used to estimate conditional probabilities 
estimate_statistics 
boolean: if 
statistics 
a character vector that defines the distributional statistics for which the decomposition is performed. 
probs 
a vector of length 1 or more with the probabilities of the quantiles to be estimated. 
custom_statistic_function 
a function estimating a custom distributional statistic that will be decomposed. 
right_to_left 
determines the direction of a sequential decomposition. 
trimming 
boolean: If 
trimming_threshold 
numeric: threshold defining the maximal accepted
relative weight of the reweighting factor value (i.e., inverse probability weight)
of a single observation. If 
return_model 
boolean: If 
estimate_normalized_difference 
boolean: If 
... 
other parameters passed to the function estimating the conditional probabilities. 