Skip to main content

cupid_matching

A Python package to solve, simulate and estimate separable matching models

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.py shows how to run minimum distance and Poisson estimators on a Choo and Siow homoskedastic model.
  • example_nestedlogit.py shows 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 numeric versions 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)

Source distribution for cupid_matching 1.0.5
File Size Uploaded
cupid_matching-1.0.5.tar.gz 468.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cupid_matching 1.0.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.3

2 release files

1.2

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page