View source: R/decomposition.R
getExplained | R Documentation |
This function calculates the explained or endowment part of a Kitawaga-Oaxaca-Blinder (KOB) decomposition generalized to a continuous grouping variable. Rarely used directly by the user.
getExplained(m, xes, ges, i = 1, j = 0)
m |
a correctly specified model for an KOB decomposition |
xes |
a character vector giving the names of the independent (or control) variables |
ges |
a character vector giving the name(s) of the grouping variable and any polynomial transformations. The list should be ordered by increasing polynomial. |
i, j |
values of the group variable to compare |
The amount of difference attributable to the explained part in a KOB decomposition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.