Stable marriage problem with transferable utilities I'm looking for a package or a code (preferably in R) that finds the solution to the stable marriage problem with transferable utilities (Shapley and Shubik 1971). Specifically, I'm looking for one or more of the following:


The stable allocation, given a matrix of the joint surplus
The set of transfers that support this allocation
Option to specify another matrix of acceptable matches


As far as I know, the package matchingMarkets in R find the solution to that problem only in the case of non-transferable utilities. Any ideas?
There's two implementations that should somewhat cover your needs, matchingR which does reduced-form algorithmic matching and matchingMarkets, which estimates estructural matching models with some baysean tools to correct for endogeneity. 

The problem is you're looking for some very specific models which may require some tweaks on these implementations.