cupid_matching
A Python package to solve, simulate and estimate separable matching models
- Free software: MIT license
- Documentation: https://bsalanie.github.io/cupid_matching
- See also: An interactive Streamlit app
Installation
pip install [-U] cupid_matching
Importing functions from the package
For instance:
from cupid_matching.min_distance import estimate_semilinear_mde
Examples
example_choosiow.pyshows how to run minimum distance and Poisson estimators on a Choo and Siow homoskedastic model.example_nestedlogit.pyshows how to run minimum distance estimators on a two-layer nested logit model.
Warnings
- many of these models (including all variants of Choo and Siow) rely heavily on logarithms and exponentials. It is easy to generate examples where numeric instability sets in.
- as a consequence, the
numericversions of the minimum distance estimator (which use numerical derivatives) are not recommended. - the bias-corrected minimum distance estimator (
corrected) may have a larger mean-squared error and/or introduce numerical instabilities.
Release notes
version 1.0.4
- added an optional bias-correction for the minimum distance estimator in the Choo and Siow homoskedastic model, to help with cases when the matching patterns vary a lot across cells.
- added two complete examples: example_choosiow.py and example_nestedlogit.py.
version 1,0.5
- simplified the bias-correction for the minimum distance estimator in the Choo and Siow homoskedastic model.
Metadata
Release files for cupid_matching 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cupid_matching-1.0.5.tar.gz | 468.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cupid_matching-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 988.7 kB
Release files / cupid_matching-1.0.5.tar.gz
| Download URL | cupid_matching-1.0.5.tar.gz |
|---|---|
| Size | 468.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c15074560b5ca9a2b34591f82400a5576b5ef55c7e55c22a0b5c3481cf2cd56
|
|
BLAKE2b-256 checksum How to use checksums |
4a790b937c9f803d6b27ac31cebbf173dfd9396f81a12afe3901213913fd2633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.3 Darwin/22.4.0
|
Release files / cupid_matching-1.0.5-py3-none-any.whl
| Download URL | cupid_matching-1.0.5-py3-none-any.whl |
|---|---|
| Size | 520.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2ea0b2e4cde834a3924f56d10077ed29ed81196ff090bb7498ba0f381c4fa04
|
|
BLAKE2b-256 checksum How to use checksums |
ff84f58d82e0f82e0f526a4d4765e987a86d0ebb204eb90872e9af00e94c6f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.3 Darwin/22.4.0
|