This branch actually just creates some simple tests comparing results from OaxacaBlinderDecomp() to results from Jann's oaxaca Stata command with the group variable flipped (using the swap option). In this branch these tests should fail, but they might be useful to build a solution from.
In a few minutes I'll PR the branch that implements a new arg to choose the reference group and which contains this branch.
@sinanpl as I mentioned in https://github.com/sinanpl/OaxacaBlinder/pull/18#issuecomment-2088608891, my plan is to use this branch as a private modification until #18 gets sorted, but I figured I'd go ahead and PR it anyway just in case you want to either accept it or use parts of it.
This branch actually just creates some simple tests comparing results from
OaxacaBlinderDecomp()
to results from Jann'soaxaca
Stata command with the group variable flipped (using theswap
option). In this branch these tests should fail, but they might be useful to build a solution from.In a few minutes I'll PR the branch that implements a new arg to choose the reference group and which contains this branch.