getExplained: Get Explained/Endowment Part of a Decomposition

View source: R/decomposition.R

getExplainedR Documentation

Get Explained/Endowment Part of a Decomposition

Description

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.

Usage

getExplained(m, xes, ges, i = 1, j = 0)

Arguments

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

Value

The amount of difference attributable to the explained part in a KOB decomposition


telliott27-research/KOBdecomp documentation built on March 19, 2022, 7:27 a.m.