Package: antitrust 0.99.43.9000

antitrust: Tools for Antitrust Practitioners

A collection of tools for antitrust practitioners, including the ability to calibrate different consumer demand systems and simulate the effects of mergers under different competitive regimes.

Authors:Charles Taragin [aut, cre], Michael Sandfort [aut], Shlok Goyal [ctb]

antitrust_0.99.43.9000.tar.gz
antitrust_0.99.43.9000.zip(r-4.7-any)antitrust_0.99.43.9000.zip(r-4.6-any)antitrust_0.99.43.9000.zip(r-4.5-any)
antitrust_0.99.43.9000.tgz(r-4.6-any)antitrust_0.99.43.9000.tgz(r-4.5-any)
antitrust_0.99.43.9000.tar.gz(r-4.7-any)antitrust_0.99.43.9000.tar.gz(r-4.6-any)
antitrust_0.99.43.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
antitrust/json (API)

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

Bug tracker:https://github.com/luciu5/antitrust/issues

On CRAN:

Conda:

7.86 score 6 stars 2 packages 54 scripts 563 downloads 113 exports 5 dependencies

Last updated from:f9712fcd5c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK145
source / vignettesOK265
linux-releaseOK194
macos-releaseOK152
macos-oldrelOK165
windows-develOK149
windows-releaseOK125
windows-oldrelOK103
wasm-releaseOK104

Exports:add_stepadvance_marketaidsantitrust_shinyauction2nd.capauction2nd.cesauction2nd.ces.almauction2nd.logitauction2nd.logit.almauction2nd.logit.nestsbargaining.cesbargaining.ces.almbargaining.logitbargaining.logit.almbargaining2nd.cesbargaining2nd.logitbertrand.almcalcBLPintegrationcalcBuyerExpectedCostcalcBuyerValuationcalcDiagnosticscalcdMCcalcExpectedLowestCostcalcExpectedPricecalcMarginscalcMarginsAGcalcMCcalcMeanvalcalcOptimalReservecalcPriceDeltacalcPriceDeltaHypoMoncalcPricescalcPricesAGcalcPricesHypoMoncalcProducerSurpluscalcQuantitiescalcRevenuescalcSellerCostParmscalcSharescalcSlopescalcVCcalibratecdfGcesces.almces.cournotces.cournot.almces.nestscmcrcmcr.bertrandcmcr.cournotcmcr.cournot2combine_counterfactualscompound_cost_shockscounterfactualcournotCVdiversiondiversionHypoMonelastentrantfake_marketfinal_resultgetNestsParmsgetParmsgetRetentionhhiHHIHypoMonTestinitialize_baseline_stateinitialize_cost_stateis_SyntheticMarketlinearlogitlogit.almlogit.caplogit.cap.almlogit.cournotlogit.cournot.almlogit.nestslogit.nests.almloglinearmarket_designmodel_specmodel_transitionmoncom.cesmoncom.logitownerToMatrixownerToVecpcaidspcaids.nestsplotprofileBLPrealize_marketrespecifyresult_atsetRetentionshowsimsimulatesimulate_marketssimulate_stepsspecifystackelbergsummarysupportedModelssynthetic_marketSyntheticMarketuppupp.bertrandupp.cournotvalidate_counterfactualvertical.barg

Dependencies:BBnleqslvnumDerivquadprogSQUAREM

Economic models and calibration
From observed market to structural state | Demand systems | Identification in observed synthetic markets | Conduct and cost recovery | Implemented combinations

Last update: 2026-11-10
Started: 2026-11-02

Fitted objects, dispatch, and extension boundaries
Objects in the lifecycle | S4 relationships that affect behavior | Public methods and dispatch | How model identity selects behavior | Obligations of an extension

Last update: 2026-11-10
Started: 2026-11-02

Workflow and counterfactual analysis
Fit a market and simulate the merger | Check what calibration matched | Add a cost saving or change the products | Separate simultaneous and staged changes | Choose the correct lifecycle operation | Optional: explore an observed synthetic market

Last update: 2026-11-10
Started: 2026-11-02

Readme and manuals

Help Manual

Help pageTopics
Tools for Antitrust Practitionersantitrust-package antitrust
Append a sequential counterfactual stepadd_step add_step,Counterfactual-method
Advance a solved market without estimating or solving itadvance_market advance_market,Antitrust-method
(Nested) AIDS Calibration and Merger Simulationaids AIDS-Functions pcaids pcaids.nests
"Antitrust" ClassesAntitrust-Class Antitrust-class characterOrList-class matrixOrList-class matrixOrVector-class
A calibrated structural modelAntitrustFit-class
Class "Auction"Auction-Classes Auction2ndCap-class Auction2ndCES-class Auction2ndCESALM-class Auction2ndLogit-class Auction2ndLogitALM-class Auction2ndLogitNests-class
(Capacity Constrained) 2nd Price Auction Modelauction2nd.cap Auction2ndCap Auction2ndCap-Functions
2nd Score Procurement Auction Model with (Nested) Logit Demandauction2nd.ces auction2nd.ces.alm auction2nd.logit auction2nd.logit.alm auction2nd.logit.nests Auction2ndLogit-Functions
Auction Cap MethodsAuctionCap-Methods calcBuyerExpectedCost calcBuyerExpectedCost,Auction2ndCap-method calcBuyerValuation calcBuyerValuation,Auction2ndCap-method calcExpectedLowestCost calcExpectedLowestCost,Auction2ndCap-method calcExpectedPrice calcExpectedPrice,Auction2ndCap-method calcOptimalReserve calcOptimalReserve,Auction2ndCap-method calcSellerCostParms calcSellerCostParms,Auction2ndCap-method cdfG cdfG,Auction2ndCap-method
"Bargaining" ClassesBargaining-class Bargaining-Classes Bargaining2ndCES-class Bargaining2ndLogit-class BargainingBLP-class BargainingCES-class BargainingCESALM-class BargainingLogit-class BargainingLogitALM-class
Nash Bargaining Model with CES Demandbargaining.ces bargaining.ces.alm bargaining2nd.ces BargainingCES-Functions
Nash Bargaining Model with Logit Demandbargaining.logit bargaining.logit.alm bargaining2nd.logit BargainingLogit-Functions
Bertrand Calibration and Merger Simulation With Logit, CES and AIDS DemandBertrand bertrand Bertrand-Functions bertrand.alm
"Bertrand" ClassesAIDS-class Bertrand-class BertrandOther-Classes Linear-class LogLin-class PCAIDS-class PCAIDSNests-class
"Bertrand RUM" ClassesAuction2ndBLP-class BertrandRUM-Classes CES-class CESALM-class CESCournot-class CESCournotALM-class CESNests-class CournotBLP-class Logit-class LogitALM-class LogitBLP-class LogitCap-class LogitCapALM-class LogitCournot-class LogitCournotALM-class LogitNests-class LogitNestsALM-class
Select BLP Integration Points and WeightscalcBLPintegration
Calculate BLP Mean Utilities via Contraction MappingcalcMeanval calcMeanval,LogitBLP-method
Calibrate a structural antitrust modelcalibrate
(Nested) Constant Elasticity of Substitution Demand Calibration and Merger Simulationces CES-Functions ces.alm ces.cournot ces.cournot.alm ces.nests
Methods For Calculating Compensating Marginal Cost Reductionscmcr,AIDS-method cmcr,ANY-method cmcr,Auction2ndLogit-method cmcr,Bertrand-method cmcr,Cournot-method CMCR-Methods cmcr-methods
Compensating Marginal Cost Reductions and Upwards Pricing Pressure (Bertrand)cmcr cmcr.bertrand CMCRBertrand-Functions upp upp.bertrand
Compensating Marginal Cost Reductions and Upwards Pricing Pressure (Cournot)cmcr.cournot cmcr.cournot2 CMCRCournot-Functions upp.cournot
Combine non-conflicting counterfactual changes into one simultaneous stepcombine_counterfactuals
Compound structural marginal-cost shockscompound_cost_shocks
Methods for Calculating marginal and Variable CostscalcdMC calcdMC,ANY-method calcdMC,Stackelberg-method calcMC calcMC,ANY-method calcMC,Auction2ndCap-method calcMC,Auction2ndCES-method calcMC,Auction2ndLogit-method calcMC,Bertrand-method calcMC,Cournot-method calcVC calcVC,ANY-method calcVC,Cournot-method Cost-Methods
Define a post-calibration economic counterfactualcounterfactual
An ordered sequence of counterfactual stepsCounterfactual-class show,Counterfactual-method
The realized sequence of states from a multi-step CounterfactualCounterfactualPath-class show,CounterfactualPath-method
A single simultaneous set of counterfactual changesCounterfactualStep-class show,CounterfactualStep-method
"Cournot" ClassesCournot-class Cournot-classes Stackelberg-class
Multi-product Cournot/Stackelberg Calibration and Merger Simulation With Linear or Log-Linear Demandcournot Cournot-Functions stackelberg
Methods For Calculating Compensating Variation (CV)CV CV,AIDS-method CV,ANY-method CV,Auction2ndLogit-method CV,CES-method CV,CESNests-method CV,Cournot-method CV,Linear-method CV,Logit-method CV,LogitBLP-method CV,LogitNests-method CV,LogLin-method CV-Methods CV-methods
Methods For Implementing The Hypothetical Monopolist TestcalcPriceDeltaHypoMon calcPriceDeltaHypoMon,AIDS-method calcPriceDeltaHypoMon,ANY-method calcPriceDeltaHypoMon,Bertrand-method calcPriceDeltaHypoMon,Cournot-method calcPricesHypoMon calcPricesHypoMon,AIDS-method calcPricesHypoMon,ANY-method calcPricesHypoMon,Auction2ndLogit-method calcPricesHypoMon,Cournot-method calcPricesHypoMon,Linear-method calcPricesHypoMon,Logit-method calcPricesHypoMon,LogitCap-method calcPricesHypoMon,LogLin-method defineMarketTools-methods diversionHypoMon diversionHypoMon,AIDS-method diversionHypoMon,ANY-method diversionHypoMon,Bertrand-method HypoMonTest HypoMonTest,ANY-method HypoMonTest,Bertrand-method HypoMonTest,Cournot-method
Methods for Calculating DiagnosticscalcDiagnostics calcDiagnostics,AntitrustFit-method calcDiagnostics,ANY-method calcDiagnostics,Bertrand-method calcDiagnostics,Cournot-method calcDiagnostics,MonComCES-method calcDiagnostics,MonComLogit-method Diagnostics-Methods
Methods For Calculating Diversiondiversion diversion,AIDS-method diversion,ANY-method diversion,Bertrand-method Diversion-Methods diversion-methods
Methods For Calculating Own and Cross-Price Elasticitieselast elast,AIDS-method elast,ANY-method elast,Auction2ndBLP-method elast,BargainingBLP-method elast,CES-method elast,CESNests-method elast,Cournot-method elast,Linear-method elast,Logit-method elast,LogitBLP-method elast,LogitNests-method elast,LogLin-method Elast-Methods elast-methods
Define a new single-product entrant firmentrant
A new single-product entrant firmEntrant-class show,Entrant-method
Generate a reproducible synthetic antitrust market designfake_market
The final solved legacy S4 result of a CounterfactualPathfinal_result final_result,CounterfactualPath-method
Herfindahl-Hirschman IndexHHI HHI-Functions
Methods For Calculating the Herfindahl-Hirschman Indexhhi hhi,ANY-method hhi,Bertrand-method hhi,Cournot-method HHI-Methods
Initialize a fitted model's observed baseline stateinitialize_baseline_state initialize_baseline_state,AntitrustFit-method initialize_baseline_state,StructuralFit-method
Initialize persistent structural cost stateinitialize_cost_state
Linear and Log-Linear Demand Calibration and Merger Simulationlinear Linear-Functions loglinear
(Nested) Logit Demand Calibration and Merger Simulation)logit Logit-Functions logit.alm logit.cap logit.cap.alm logit.cournot logit.cournot.alm logit.nests logit.nests.alm
Methods for Calculating MarginscalcMargins calcMargins,AIDS-method calcMargins,ANY-method calcMargins,Auction2ndBLP-method calcMargins,Auction2ndCap-method calcMargins,Auction2ndCES-method calcMargins,Auction2ndLogit-method calcMargins,Auction2ndLogitNests-method calcMargins,Bargaining2ndCES-method calcMargins,Bargaining2ndLogit-method calcMargins,BargainingBLP-method calcMargins,BargainingCES-method calcMargins,BargainingLogit-method calcMargins,Bertrand-method calcMargins,CES-method calcMargins,CESCournot-method calcMargins,Cournot-method calcMargins,CournotBLP-method calcMargins,LogitCap-method calcMargins,LogitCournot-method calcMargins,MonComBLP-method calcMargins,MonComCES-method calcMargins,MonComLogit-method Margins-Methods
Methods for Calculating Prices and Margins Using Aggregative GamescalcMarginsAG calcMarginsAG,ANY-method calcMarginsAG,Auction2ndCES-method calcMarginsAG,Auction2ndLogit-method calcMarginsAG,Bargaining2ndCES-method calcMarginsAG,Bargaining2ndLogit-method calcMarginsAG,BargainingCES-method calcMarginsAG,BargainingLogit-method calcMarginsAG,CES-method calcMarginsAG,Cournot-method calcMarginsAG,Logit-method calcPricesAG calcPricesAG,ANY-method calcPricesAG,Auction2ndCES-method calcPricesAG,Auction2ndLogit-method calcPricesAG,Bargaining2ndCES-method calcPricesAG,Bargaining2ndLogit-method calcPricesAG,BargainingCES-method calcPricesAG,BargainingLogit-method calcPricesAG,CES-method calcPricesAG,Cournot-method calcPricesAG,Logit-method MarginsAG-Methods
Return synthetic market design metadatamarket_design
Describe a demand/conduct model combinationmodel_spec
Look up a registered structural model transitionmodel_transition
Monopolistic-competition classesMonCom-classes MonComBLP-class MonComCES-class MonComLogit-class
Monopolistic-competition calibrationMonCom-Functions moncom.ces moncom.logit
Output MethodscalcQuantities calcQuantities,AIDS-method calcQuantities,ANY-method calcQuantities,CES-method calcQuantities,Cournot-method calcQuantities,Linear-method calcQuantities,Logit-method calcQuantities,LogitCap-method calcQuantities,LogLin-method calcQuantities,Stackelberg-method calcRevenues calcRevenues,AIDS-method calcRevenues,ANY-method calcRevenues,Bertrand-method calcRevenues,CES-method calcRevenues,Cournot-method calcShares calcShares,AIDS-method calcShares,ANY-method calcShares,Auction2ndBLP-method calcShares,Auction2ndCap-method calcShares,Auction2ndCES-method calcShares,Auction2ndLogit-method calcShares,Auction2ndLogitNests-method calcShares,BargainingBLP-method calcShares,CES-method calcShares,CESNests-method calcShares,Cournot-method calcShares,Linear-method calcShares,Logit-method calcShares,LogitBLP-method calcShares,LogitNests-method Output-Methods
Methods for Manipulating Ownership MatricesOwnership-methods ownerToMatrix ownerToMatrix,Antitrust-method ownerToVec ownerToVec,Antitrust-method
Methods for Calculating Demand ParameterscalcSlopes calcSlopes,AIDS-method calcSlopes,ANY-method calcSlopes,Auction2ndCES-method calcSlopes,Auction2ndCESALM-method calcSlopes,Auction2ndLogit-method calcSlopes,Auction2ndLogitALM-method calcSlopes,Auction2ndLogitNests-method calcSlopes,Bargaining2ndCES-method calcSlopes,Bargaining2ndLogit-method calcSlopes,BargainingCES-method calcSlopes,BargainingCESALM-method calcSlopes,BargainingLogit-method calcSlopes,BargainingLogitALM-method calcSlopes,CES-method calcSlopes,CESALM-method calcSlopes,CESCournot-method calcSlopes,CESCournotALM-method calcSlopes,CESNests-method calcSlopes,Cournot-method calcSlopes,Linear-method calcSlopes,Logit-method calcSlopes,LogitALM-method calcSlopes,LogitBLP-method calcSlopes,LogitCap-method calcSlopes,LogitCapALM-method calcSlopes,LogitCournot-method calcSlopes,LogitCournotALM-method calcSlopes,LogitNests-method calcSlopes,LogitNestsALM-method calcSlopes,LogLin-method calcSlopes,MonComCES-method calcSlopes,MonComLogit-method calcSlopes,PCAIDS-method calcSlopes,PCAIDSNests-method calcSlopes,Stackelberg-method getNestsParms getNestsParms,Auction2ndLogitNests-method getNestsParms,CESNests-method getNestsParms,LogitNests-method getNestsParms,PCAIDSNests-method getParms getParms,ANY-method getParms,Bertrand-method Params-Methods
Methods For Calculating Upwards Pricing Pressure Index (Bertrand)plot,Bertrand-method Plot-Methods
Methods For Calculating Price DeltacalcPriceDelta calcPriceDelta,AIDS-method calcPriceDelta,Antitrust-method calcPriceDelta,ANY-method calcPriceDelta,Auction2ndLogit-method calcPriceDelta,Cournot-method PriceDelta-Methods
"Calculating Prices" MethodscalcPrices calcPrices,AIDS-method calcPrices,ANY-method calcPrices,Auction2ndCap-method calcPrices,Auction2ndCES-method calcPrices,Auction2ndLogit-method calcPrices,BargainingBLP-method calcPrices,BargainingLogit-method calcPrices,CESCournot-method calcPrices,Cournot-method calcPrices,Linear-method calcPrices,Logit-method calcPrices,LogitBLP-method calcPrices,LogitCap-method calcPrices,LogLin-method calcPrices,MonComCES-method calcPrices,MonComLogit-method Prices-Methods
Print a synthetic marketprint.SyntheticMarket
Profile the BLP calibration objective over random-coefficient scaleprofileBLP
Producer Surplus MethodscalcProducerSurplus calcProducerSurplus,ANY-method calcProducerSurplus,Auction2ndCap-method calcProducerSurplus,Bertrand-method calcProducerSurplus,Cournot-method PS-methods
Realize a synthetic market under a model-specific specificationrealize_market
Realize a SyntheticMarket under multi-product Bertrand Logitrealize_market.SyntheticMarket
Respecify a fitted antitrust modelrespecify respecify,AntitrustFit-method respecify,StructuralFit-method
The legacy S4 result at a given step of a CounterfactualPathresult_at result_at,CounterfactualPath-method
Product revenue retentiongetRetention setRetention
Show Methodshow,Antitrust-method Show-Methods
Print a calibrated structural modelshow,AntitrustFit-method
Merger Simulation With User-Supplied Demand Parameterssim Sim-Functions
Simulate a counterfactual from a calibrated structural modelsimulate simulate,AntitrustFit-method simulate,ANY-method simulate,CounterfactualPath-method simulate,StructuralFit-method
Generate deterministic synthetic-market replicationssimulate_markets
Resolve a sequence of counterfactual steps for a fitted structural modelsimulate_steps simulate_steps,AntitrustFit-method
Construct a fitted structural model from supplied parametersspecify
A shared structural fit contractStructuralFit-class
Summary Methodssummary,AIDS-method summary,ANY-method summary,Auction2ndCap-method summary,Auction2ndLogit-method summary,Bertrand-method summary,Cournot-method summary-methods
Summarize a calibrated structural modelsummary,AntitrustFit-method
List demand/conduct combinations supported by antitrustsupportedModels
Generate a model-consistent synthetic antitrust marketsynthetic_market
A model-independent synthetic market designis_SyntheticMarket SyntheticMarket
Recalibrate a fitted antitrust modelupdate.AntitrustFit
Methods For Calculating Upwards Pricing Pressure Index (Bertrand)upp,AIDS-method upp,ANY-method upp,Auction2ndLogit-method upp,Bertrand-method UPP-Methods upp-methods
Validate a counterfactual against a fitted modelvalidate_counterfactual validate_counterfactual,AntitrustFit-method validate_counterfactual,StructuralFit-method
Vertical bargaining moved to the vertical packagevertical.barg