Skip to main content

What Lccm is

Lccm is a Python package for estimating latent class choice models using the Expectation Maximization (EM) algorithm to maximize the likelihood function.

Main Features

Latent Class Choice Models

  • Supports datasets where the choice set differs across observations.

  • Allows the analyst to capture correlation across multiple observations for the same respondent (panel data in Revealed Preference contexts and multiple choice tasks in Stated Preference contexts).

  • Supports model specifications where the coefficient for a given variable may be generic (same coefficient across all alternatives) or alternative specific (coefficients varying across all alternatives or subsets of alternatives) in each latent class.

  • Accounts for sampling weights in case the data you are working with is choice-based i.e. Weighted Exogenous Sample Maximum Likelihood (WESML) from (Ben-Akiva and Lerman, 1983) to yield consistent estimates.

  • Constrains the choice set across latent classes whereby each latent class can have its own subset of alternatives in the respective choice set.

  • Constrains the availability of latent classes to all individuals in the sample whereby it might be the case that a certain latent class or set of latent classes are unavailable to certain decision-makers.

Where to get it

Available from PyPi::

pip install lccm

https://pypi.python.org/pypi/lccm/0.1.20

For More Information

For more information about the lccm code, see the following dissertation:

El Zarwi, Feras. “Modeling and Forecasting the Impact of Major Technological and Infrastructural Changes on Travel Demand”, PhD Dissertation, 2017, University of California at Berkeley.

Attribution

If Lccm is useful in your research or work, please cite this package by citing the dissertation above and the package itself.

License

Modified BSD (3-clause)

Changelog

0.1.20 (April 21st, 2017)

  • Initial package release for estimating latent class choice models using the Expectation Maximization Algorithm.

Metadata

Release files for lccm 0.1.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lccm 0.1.20
File Size Uploaded
lccm-0.1.20.tar.gz 14.2 kB Details

Release files / lccm-0.1.20.tar.gz

Download URL lccm-0.1.20.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
251721331d1b1af8069de07a062adcef3eaed008e06a4b45af142a8d91cd5d2f
BLAKE2b-256 checksum
How to use checksums
db4cb664f026c35f739a38b00cc178a6febe5b0f5a4b2cdb9b30290b8c676602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.20 This release

1 release file

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