This package estimates by maximum likelihood a one-to-one matching model with transferable utility, in which the choice probabilities of agents on both sides of the matching market are given by the logit model. The model is similar to that proposed by Choo and Siow (2006), while the estimator is closely related to that of Dupuy and Galichon (2022), as the distributions of equilibrium transfers and matches are assumed to be observed.
Similar to Rust (1987), the estimation procedure relies on a nested fixed-point algorithm with an outer loop that searches over different vectors of parameters to maximize the log-likelihood function, and an inner loop that, for a given vector of parameters, solves for the equilibrium transfers.
The model and estimator are implemented in JAX. Using squarem-JAXopt, we apply the SQUAREM accelerator to efficiently solve the system of fixed-point equations that characterize the equilibrium transfers without relying on derivatives of the fixed-point. Through JAXopt, we leverage implicit differentiation to automatically compute the gradient of the log-likelihood function.
The matching market consists of agent of type X and Y on both sides of the market. Each agent choose who they want to match with. The deterministic match-specific payoffs of the agents of type X and Y are given as
where
where
In turn, the choice probabilities of being unmatched are given as
Finally, the transfers,
where
are the marginal distribution of agents of type X and Y. The distribution of equilibrium transfers can be determined from a system of fixed-point equations
that can be shown to be a contraction mapping, see Andersen (2025). Hence, iterating on this expression is guaranteed to converge to an unique solution,
Let
We will use the well known fact that
The full log-likelihood function is given by the sum of the log-likelihood of transfers, matched and unmatched agents of type X, and matched and unmatched agents of type Y
where the log-likelihood of transfers is proportional to the variance of the measurement errors,
the log-likelihood of the matched and unmatched agents of type X is given as the negative Kullback-Leibler divergence between the observed choices,
and the log-likelihood of the matched and unmatched agents of type Y is given as the negative Kullback-Leibler divergence between the observed choices,