Git Product home page Git Product logo

grumps.jl's Introduction

Grumps.jl

Stable Dev Aqua QA

header

Grumps.jl v0.2.5

Overview

Grumps.jl is a package for computing random coefficients demand models using consumer and product level data. The main estimators are introduced in Grieco, Murry, Pinkse, and Sagl (2022), including:

  1. the conformant likelihood with exogeneity restrictions (CLER) estimator

  2. an asymptotically equivalent less expensive alternative thereof

  3. the mixed data likelihood estimator (MDLE)

  4. the share constrained likelihood estimator

    In addition, other estimators have been implemented:

  5. mixed logit models (consumer level data only)

  6. multinomial logit models (consumer level data only)

  7. GMM type random coefficient models in the style of Berry, Levinsohn, and Pakes (2004) (in process, not recommended)

$(\hat\delta,\hat\theta,\hat\beta) = \text{argmin}_{\delta,\theta,\beta} \big( - \log \hat L(\delta,\theta) + \hat\Pi(\delta,\beta) \big),$

where $\log \hat L$ is the sum of a micro loglikelihood and a macro loglikelihood and $\hat\Pi$ is a quadratic penalty term. Any of the three components can be omitted if so desired.

Typically, $\log \hat L$ is a sum over markets, products, and consumers whereas $\hat\Pi$ is a GMM-style squared norm of a vector-valued sum over markets. Please see Grieco, Murry, Pinkse, and Sagl (2022) for details.

Several extensions are possible, which may require additions to the code.

Documentation

This documentation describes the use of the Grumps computer package. It does not describe the estimators or algorithms. Please refer to Grieco, Murry, Pinkse, and Sagl (2022) for that. In addition, the code itself is documented, also.

Limitations

This is still a preliminary version of Grumps, so please advise Joris Pinkse of any bugs, problems, shortcomings, missing features, etcetera. Features it does not currently possess include:

  1. sparse quadrature or similar integration methods
  2. distributed computing
  3. GPUs
  4. statistics other than coefficients, e.g. elasticities
  5. integration methods for the micro portion of the GMM estimator other than quadrature
  6. traditional GMM; see Grieco, Murry, Pinkse, and Sagl (2022) for details
  7. standard errors for some of the estimators
  8. detailed sanity checks

Versions

0.2.4

  1. Bug fix for the user-specified arbitrary interactions case.

0.2.3

  1. Bug fix for the case in which there are no macro data but an estimator other than mixed logit is selected.

0.2.2

  1. Added compatibility checks
  2. Precautionary change to improve robustness across operating systems

0.2.1

One minor bug fix:

  1. Mac terminals did not support the progress bar in version 0.2.0. This issue has been addressed and the progress bar is moreover turned off by default.

0.2.0

There are many improvements, including:

  1. User-specified interactions, which makes it possible to e.g. have distance between consumer and branch as an interactions regressor
  2. Significant improvement in speed
  3. A progress bar, indicating what fraction of markets have been completed in an iteration
  4. Several other code improvements

License

All of this code is subject to the MIT license. This code includes a modified version of the Newton Method with Trust Regions code in the Optim package, which is also subject to the MIT license.

grumps.jl's People

Contributors

nittanylion avatar github-actions[bot] avatar charliemurry avatar

Stargazers

Nelson avatar Alexandros Fakos avatar Moshtaba avatar giuseppe forte avatar  avatar Jaepil Lee avatar  avatar Diego S Cardoso avatar Rodrigo Franco avatar Xinyi Zhang avatar Fernando Cordeiro avatar Jeff Gortmaker avatar Jeremiah avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

grumps.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Incorporating a supply side

Hi,

Great contribution so far!!

Question: Is it straightforward to add a supply side restriction to the estimation procedure as an exogeneity restriction?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.