Package: mergersim 0.1.0

Matthew T Panhans

mergersim: Merger Simulation and Calibration

Analyze mergers between firms. Models of competition include differentiated Bertrand price-setting, Nash bargaining, and second score auctions, as implemented in Panhans and Taragin (2023) <doi:10.1016/j.ijindorg.2023.102986>. Calibrates demand systems including standard logit, nested logit, and generalized nested logit as implemented in Panhans and Wiemer (2026) <doi:10.1093/joclec/nhaf037>.

Authors:Matthew T Panhans [aut, cre]

mergersim_0.1.0.tar.gz
mergersim_0.1.0.tar.gz(r-4.7-any)mergersim_0.1.0.tar.gz(r-4.6-any)
mergersim_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mergersim/json (API)

# Install 'mergersim' in R:
install.packages('mergersim', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.18 score 5 scripts 22 exports 4 dependencies

Last updated from:c54c701200. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK164
source / vignettesOK175
linux-release-x86_64OK121
wasm-releaseOK105

Exports:bargain_calibratebargain_focbargain_foc_vert_simbargain_NP_vert_seqbargain_NP_vert_seq_gnlbargain_vert_seq_calibratebargain_vert_sim_calibratebargain_vert_sim_calibrate_gnlbertrand_calibratebertrand_calibrate_gnlbertrand_focbertrand_foc_cbertrand_foc_vertbertrand_foc_vert_gnlbertrand_vert_calibratediversion_calcmatch_shareshare_calcssa_calibratessa_calibrate_gnlssbargain_calibratessbargain_foc

Dependencies:BBnumDerivquadprogrootSolve

Calibrating generalized nested logit (GNL) demand
Introduction | Nested Logit | Set up scenario | Calibrate demand parameters, with full information | GNL with overlapping nests

Last update: 2026-07-02
Started: 2026-07-02

Horizontal merger simulations
Introduction | Preliminaries | Bertrand Competition | Calibrating the demand parameters | Calibration with some unobserved costs | Second score auction | Traditional Bargaining Model (nests Bertrand) | Calibration | Alternative Bargaining Model (nests SSA) | Generalized Nested Logit (GNL) Demand | Bertrand

Last update: 2026-07-02
Started: 2026-07-02

Vertical merger simulations
Introduction | Preliminaries | Theoretical Framework | Downstream Bertrand Competition | Upstream Bargaining | FOCs with Vertical Integration | Calibrating the demand parameters | When all costs are observed | When some costs are unobserved | On model fit | Predicting Merger Effects | Comparison to 'antitrust' package

Last update: 2026-07-02
Started: 2026-07-02