README.md

SimNashPrice

Tools for working with models of demand based on discrete choice/random utility models with logit errors: currently I support simple logit and random coefficient logit.

The main tool is an implementation of Morrow and Skerlos (2010)'s "zeta fixed point" which is a fast fixed point method for computing nash equilibrium prices. Eventually I plan to add other methods for computing these prices, but I am finding the "zeta fixed point" to be so fast and reliable it should probably be used exclusively.

I organize information about specific markets (in practice often a time-location observation) in 'Logit_Demand_Market' objects or 'rLogit_Demand_Market' objects. These objects contain all of the information needed to compute: prices, shares, profits, markups and other conduct variables of interest.

Using an object oriented approach unifies the representation of the markets and will make it easy to build extensions without having to think about how to organize new information. It also avoids relying on the user specifying important parameters in the computational enviroment--they just need to call the constructor.

I use the R6 package as the OOP system. This allows for traditional OOP pass by reference, (methods don't copy on modify) which allows for faster computation. R6 allows for private attributes--which encapsulates the state of each market, preventing shared/mutable state errors. Users concerned about replicability may create clones of the initial object state. R6 is faster and has less memory overhead the the RC system.

Eventually, I will add nested logit demand market classes and more complex price models to the package.

There are also some simulation tools. The user specifies market primitives and functions for drawing from Berry (1994) type structural errors, and is returned the firms expected variable profits (average over the simulation draws). Another tool allows the user to generate simulated data for testing demand estimation. Finally, there is a tool that conducts a monte carlo simulation of a single firm (e.g. in a monopoly) choosing products.



joearossetti/SimNashPrice documentation built on May 19, 2019, 2:58 p.m.