GeneralOaxaca(formula, family = stats::gaussian, data,
groupInd, groupRef = "A", B = 1000, control = list())
formula
" (or one that can be coerced to that class): a symbolic description of the model to be fitted.family
for details of family functions.)
environment(formula)
.
groupInd
. groupInd
. twofold
and threefold
decomposition contains the characteristic and coefficient part (also the interaction for the threefold) of the decomposition, with their proportion with respect to the observed difference between groups. It also give the z value, p value and 95% confidence intervals computed using the bootstrapped standard errors.
The regoutput
are the results of the generalized linear model applied to data in each group (A and B). See glm
for more details about the outputs.B. Efron. Bootstrap Methods: Another Look at the Jackknife (1979). Annals of Statistics, 7(1), 1-26.
data("chicago")
chicago$real.wage=exp(chicago$ln.real.wage)
formula=ln.real.wage~ age + female + LTHS + some.college + college +
advanced.degree
# exemple with gamma distribution
BO_A <- GeneralOaxaca(formula, family= Gamma, data=chicago,
groupInd=chicago$foreign.born,B=100)
BO_A$twofold
BO_A$regoutput$GroupA
BO_A$threefold
Run the code above in your browser using DataLab