Skip to main content

Solves, simulates, and estimates separable matching TU models

Project description

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.

version 1.0.6

  • corrected typo.

version 1.0.7

  • fixed error in bias-correction term.

Project details


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.7.tar.gz (2.5 MB view hashes)

Uploaded Source

Built Distribution

cupid_matching-1.0.7-py3-none-any.whl (3.8 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page