ob_decompose_calculate_terms {ddecompose}  R Documentation 
Calculate OB decomposition terms
Description
The function calculates the decomposition terms of the linear
OaxacaBlinder decomposition based on the estimated OLS
coefficients and the respective model.matrix
.
Usage
ob_decompose_calculate_terms(
beta0,
beta1,
X0,
X1,
weights0,
weights1,
reference_0
)
Arguments
beta0 
vector of estimated coefficients of group 0 
beta1 
vector of estimated coefficients of group 1 
X0 

X1 

weights0 
vector of observation weights of group 0 
weights1 
vector of observation weights of group 1 
reference_0 
boolean: indicating if group 0 is the reference group and if its coefficients are used to compute the counterfactual mean. 
[Package ddecompose version 1.0.0 Index]