Package: mergersim 0.2.0

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.2.0.tar.gz
mergersim_0.2.0.zip(r-4.7-any)mergersim_0.2.0.zip(r-4.6-any)mergersim_0.2.0.zip(r-4.5-any)
mergersim_0.2.0.tgz(r-4.6-any)mergersim_0.2.0.tgz(r-4.5-any)
mergersim_0.2.0.tar.gz(r-4.7-any)mergersim_0.2.0.tar.gz(r-4.6-any)
mergersim_0.2.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://mpanhans.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mpanhans/mergersim/issues

On CRAN:

Conda:

5.32 score 5 scripts 142 downloads 22 exports 4 dependencies

Last updated from:83363c3220. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK117
source / vignettesOK177
linux-releaseOK116
macos-releaseOK104
macos-oldrelOK85
windows-develOK107
windows-releaseOK73
windows-oldrelOK66
wasm-releaseOK111

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

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

Last update: 2026-07-16
Started: 2024-10-12

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-16
Started: 2025-03-31

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-06-22
Started: 2026-03-06