Implements the model presented in Shelegia and Motta (2021)
Project description
This package implements the models of Shelegia and Motta (2021).
Installation
Installation over PyPI:
pip install Shelegia-Motta-2021
Or clone the repository via GitHub:
git clone manuelbieri/shelegia_motta_2021
Introduction
Since all models implement the Shelegia_Motta_2021.IModel.IModel - Interface, therefore all models provide the same functionality (public methods), even though the results may change substantially.
For all models add the following import statement:
import Shelegia_Motta_2021.Models
Models
Base Model
base_model = Shelegia_Motta_2021.Models.BaseModel()
Unobservable Choices Model
unobservable_model = Shelegia_Motta_2021.Models.UnobservableModel()
Acquisition Model
acquisition_model = Shelegia_Motta_2021.Models.AcquisitionModel()
Two-sided Market Model
two_sided_market_model = Shelegia_Motta_2021.Models.TwoSidedMarketModel()
Basic usage
# every model type can be plugged in
model: Shelegia_Motta_2021.IModel.IModel = Shelegia_Motta_2021.Models.BaseModel()
# print string representation of the model
print(model)
# plot the best answers of the incumbent to the choice of the entrant
model.plot_incumbent_best_answers()
# plot the equilibrium path
model.plot_equilibrium()
Documentation
For the latest version of the documentation open manuelbieri.github.io/shelegia_motta_2021 in your browser or call:
import Shelegia_Motta_2021
Shelegia_Motta_2021.docs()
Build Documentation
Install the pdoc package:
pip install pdoc
Generate api-documentation with the following command:
pdoc -o ./docs Shelegia_Motta_2021 --docformat "numpy" --math
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Shelegia_Motta_2021-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ba4155b7f4e6dff7825b3f8bbfde92864fa99a206254b9f54747f39063961c |
|
MD5 | 2e094be8486b9a497793c07b0f56266d |
|
BLAKE2b-256 | 735a0e7c918a17d5787b01d1fccd23631f708604aa3a417739834f4a51be6317 |
Hashes for Shelegia_Motta_2021-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d93ac610cff37b327fa307917e176f305296bfdcf92c92d382af5d03d37a1a6 |
|
MD5 | 18a5ec94bb1ec895f77c4276f23fffe1 |
|
BLAKE2b-256 | 4157f2d04961e470c734a4fa83a8f10cb86a09eb90e6cc38795e943f07fc10da |