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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cupid_matching-1.0.5.tar.gz
(468.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cupid_matching-1.0.5.tar.gz.
File metadata
- Download URL: cupid_matching-1.0.5.tar.gz
- Upload date:
- Size: 468.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.3 Darwin/22.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c15074560b5ca9a2b34591f82400a5576b5ef55c7e55c22a0b5c3481cf2cd56
|
|
| MD5 |
f0ff4d9218ce93de2d73e6ca9ad3dadc
|
|
| BLAKE2b-256 |
4a790b937c9f803d6b27ac31cebbf173dfd9396f81a12afe3901213913fd2633
|
File details
Details for the file cupid_matching-1.0.5-py3-none-any.whl.
File metadata
- Download URL: cupid_matching-1.0.5-py3-none-any.whl
- Upload date:
- Size: 520.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.3 Darwin/22.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2ea0b2e4cde834a3924f56d10077ed29ed81196ff090bb7498ba0f381c4fa04
|
|
| MD5 |
410c9165eb8c49cd1df924bf196cf9ef
|
|
| BLAKE2b-256 |
ff84f58d82e0f82e0f526a4d4765e987a86d0ebb204eb90872e9af00e94c6f2a
|