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

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

On CRAN:

Conda:

5.22 score 5 scripts 22 exports 4 dependencies

Last updated from:8f324c06ba. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK120
source / vignettesOK176
linux-release-x86_64OK112
macos-release-arm64OK134
macos-oldrel-arm64OK179
windows-develOK74
windows-releaseOK76
windows-oldrelOK76
wasm-releaseOK104

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

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

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

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: 2025-11-10
Started: 2024-10-12