Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python package for solving assortative matching models with two-sided heterogeneity.

Project Description

Python package for solving assortative matching models with two-sided heterogeneity. The theoretical framework behind the class of models solved by pyAM is described in Eeckhout and Kircher (2012).


Assuming you have pip on your computer (as will be the case if you’ve installed Anaconda) you can install the latest stable release of pyam by typing

$ pip install pyam

at a terminal prompt.


If you wish to contribute to the project you will likely want to install from source. First your will need to fork and then clone the source repository.

$ git clone

Next create a new conda development environment

$ conda create -n pyam-dev python anaconda

activate the newly created development environment

$ source activate pyam-dev

and install additional dependencies not available within Anaconda.

$ pip install pycollocation
$ pip install seaborn

Finally, change into your local clone of the pyam source directory and install the package in development mode.

$ pip install -e .

Example notebooks

At the moment there are two example notebooks, one for positive assortative matching and one for negative assortative matching in the examples directory. The positive assortative matching works fine; the negative assortative matching, however, does not yet work (I suspect because of a poor algorithm for the initial guess).

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(10.0 kB) Copy SHA256 Hash SHA256
Source Aug 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting