sinanpl / OaxacaBlinder

R implementation of Oaxaca-Blinder gap decomposition
MIT License
1 stars 1 forks source link

Viewpoint flip tests #49

Open davidskalinder opened 4 months ago

davidskalinder commented 4 months ago

@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'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.