Code
My cupid_matching repository contains Python code related to separable matching with transferable utilities, as analyzed in my paper with Alfred Galichon. It serves as the basis for my cupid_matching package, which is installable via pip
.
It replaces my earlier CupidPython
package, which is now obsolete.
The full documentation is here.
The cupid_matching
package has code
- to solve for the stable matching using our Iterative Projection Fitting Procedure (IPFP) in variants of the model of bipartite, one-to-one matching with perfectly transferable utility. It has IPFP solvers for variants of the Choo and Siow 2006 model with or without singles, homoskedastic and heteroskedastic; and also for a class of nested logit models.
- to estimate the parameters of separable models with semilinear surplus and entropy using a minimum distance estimator.
- to estimate the parameters of semilinear Choo and Siow models using a Poisson GLM estimator.
I also coded a Streamlit interactive app that demonstrates solving and estimating the Choo and Siow model using the cupid_matching
package. It also allows the user to download a summary of their simulation. You can try it here.
My ipfp_R repository only contains R code to solve for equilibrium in the basic version of the Choo and Siow model.