estimate_ob_decompose {ddecompose}  R Documentation 
Estimate OB decomposition
Description
The function performs the linear OaxacaBlinder decomposition.
Usage
estimate_ob_decompose(
formula,
data_used,
reference_0,
normalize_factors,
compute_analytical_se,
return_model_fit,
reweighting,
rifreg,
rifreg_statistic,
rifreg_probs,
custom_rif_function,
na.action,
vcov,
...
)
Arguments
formula 

data_used 

reference_0 
boolean: indicating if group 0 is the reference group and if its coefficients are used to compute the counterfactual mean. 
normalize_factors 
boolean: If 'TRUE', then factor variables are normalized as proposed by Gardeazabal/Ugidos (2004) 
compute_analytical_se 
boolean: If 'TRUE', then analytical standard errors for decomposition terms are calculated (assuming independence between groups). 
return_model_fit 
boolean: If 'TRUE', then model objects are returned. 
reweighting 
boolean: if 'TRUE', then the decomposition is performed with with respect to reweighted reference group. 
rifreg 
boolean: if 'TRUE', then RIF decomposition is performed 
rifreg_statistic 
string containing the distributional statistic for which to compute the RIF. 
rifreg_probs 
a vector of length 1 or more with probabilities of quantiles. 
custom_rif_function 
the RIF function to compute the RIF of the custom distributional statistic. 
na.action 
generic function that defines how NAs in the data should be handled. 
vcov 
unction estimating covariance matrix of regression coefficients if 
... 
additional parameters passed to custom_rif_function 