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:
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
Last updated from:f9712fcd5c. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 145 | ||
| source / vignettes | OK | 265 | ||
| linux-release | OK | 194 | ||
| macos-release | OK | 152 | ||
| macos-oldrel | OK | 165 | ||
| windows-devel | OK | 149 | ||
| windows-release | OK | 125 | ||
| windows-oldrel | OK | 103 | ||
| wasm-release | OK | 104 |
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
Last update: 2026-11-10
Started: 2026-11-02
Last update: 2026-11-10
Started: 2026-11-02
Last update: 2026-11-10
Started: 2026-11-02
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Tools for Antitrust Practitioners | antitrust-package antitrust |
| Append a sequential counterfactual step | add_step add_step,Counterfactual-method |
| Advance a solved market without estimating or solving it | advance_market advance_market,Antitrust-method |
| (Nested) AIDS Calibration and Merger Simulation | aids AIDS-Functions pcaids pcaids.nests |
| "Antitrust" Classes | Antitrust-Class Antitrust-class characterOrList-class matrixOrList-class matrixOrVector-class |
| A calibrated structural model | AntitrustFit-class |
| Class "Auction" | Auction-Classes Auction2ndCap-class Auction2ndCES-class Auction2ndCESALM-class Auction2ndLogit-class Auction2ndLogitALM-class Auction2ndLogitNests-class |
| (Capacity Constrained) 2nd Price Auction Model | auction2nd.cap Auction2ndCap Auction2ndCap-Functions |
| 2nd Score Procurement Auction Model with (Nested) Logit Demand | auction2nd.ces auction2nd.ces.alm auction2nd.logit auction2nd.logit.alm auction2nd.logit.nests Auction2ndLogit-Functions |
| Auction Cap Methods | AuctionCap-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" Classes | Bargaining-class Bargaining-Classes Bargaining2ndCES-class Bargaining2ndLogit-class BargainingBLP-class BargainingCES-class BargainingCESALM-class BargainingLogit-class BargainingLogitALM-class |
| Nash Bargaining Model with CES Demand | bargaining.ces bargaining.ces.alm bargaining2nd.ces BargainingCES-Functions |
| Nash Bargaining Model with Logit Demand | bargaining.logit bargaining.logit.alm bargaining2nd.logit BargainingLogit-Functions |
| Bertrand Calibration and Merger Simulation With Logit, CES and AIDS Demand | Bertrand bertrand Bertrand-Functions bertrand.alm |
| "Bertrand" Classes | AIDS-class Bertrand-class BertrandOther-Classes Linear-class LogLin-class PCAIDS-class PCAIDSNests-class |
| "Bertrand RUM" Classes | Auction2ndBLP-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 Weights | calcBLPintegration |
| Calculate BLP Mean Utilities via Contraction Mapping | calcMeanval calcMeanval,LogitBLP-method |
| Calibrate a structural antitrust model | calibrate |
| (Nested) Constant Elasticity of Substitution Demand Calibration and Merger Simulation | ces CES-Functions ces.alm ces.cournot ces.cournot.alm ces.nests |
| Methods For Calculating Compensating Marginal Cost Reductions | cmcr,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 step | combine_counterfactuals |
| Compound structural marginal-cost shocks | compound_cost_shocks |
| Methods for Calculating marginal and Variable Costs | calcdMC 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 counterfactual | counterfactual |
| An ordered sequence of counterfactual steps | Counterfactual-class show,Counterfactual-method |
| The realized sequence of states from a multi-step Counterfactual | CounterfactualPath-class show,CounterfactualPath-method |
| A single simultaneous set of counterfactual changes | CounterfactualStep-class show,CounterfactualStep-method |
| "Cournot" Classes | Cournot-class Cournot-classes Stackelberg-class |
| Multi-product Cournot/Stackelberg Calibration and Merger Simulation With Linear or Log-Linear Demand | cournot 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 Test | calcPriceDeltaHypoMon 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 Diagnostics | calcDiagnostics calcDiagnostics,AntitrustFit-method calcDiagnostics,ANY-method calcDiagnostics,Bertrand-method calcDiagnostics,Cournot-method calcDiagnostics,MonComCES-method calcDiagnostics,MonComLogit-method Diagnostics-Methods |
| Methods For Calculating Diversion | diversion diversion,AIDS-method diversion,ANY-method diversion,Bertrand-method Diversion-Methods diversion-methods |
| Methods For Calculating Own and Cross-Price Elasticities | elast 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 firm | entrant |
| A new single-product entrant firm | Entrant-class show,Entrant-method |
| Generate a reproducible synthetic antitrust market design | fake_market |
| The final solved legacy S4 result of a CounterfactualPath | final_result final_result,CounterfactualPath-method |
| Herfindahl-Hirschman Index | HHI HHI-Functions |
| Methods For Calculating the Herfindahl-Hirschman Index | hhi hhi,ANY-method hhi,Bertrand-method hhi,Cournot-method HHI-Methods |
| Initialize a fitted model's observed baseline state | initialize_baseline_state initialize_baseline_state,AntitrustFit-method initialize_baseline_state,StructuralFit-method |
| Initialize persistent structural cost state | initialize_cost_state |
| Linear and Log-Linear Demand Calibration and Merger Simulation | linear 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 Margins | calcMargins 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 Games | calcMarginsAG 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 metadata | market_design |
| Describe a demand/conduct model combination | model_spec |
| Look up a registered structural model transition | model_transition |
| Monopolistic-competition classes | MonCom-classes MonComBLP-class MonComCES-class MonComLogit-class |
| Monopolistic-competition calibration | MonCom-Functions moncom.ces moncom.logit |
| Output Methods | calcQuantities 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 Matrices | Ownership-methods ownerToMatrix ownerToMatrix,Antitrust-method ownerToVec ownerToVec,Antitrust-method |
| Methods for Calculating Demand Parameters | calcSlopes 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 Delta | calcPriceDelta calcPriceDelta,AIDS-method calcPriceDelta,Antitrust-method calcPriceDelta,ANY-method calcPriceDelta,Auction2ndLogit-method calcPriceDelta,Cournot-method PriceDelta-Methods |
| "Calculating Prices" Methods | calcPrices 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 market | print.SyntheticMarket |
| Profile the BLP calibration objective over random-coefficient scale | profileBLP |
| Producer Surplus Methods | calcProducerSurplus calcProducerSurplus,ANY-method calcProducerSurplus,Auction2ndCap-method calcProducerSurplus,Bertrand-method calcProducerSurplus,Cournot-method PS-methods |
| Realize a synthetic market under a model-specific specification | realize_market |
| Realize a SyntheticMarket under multi-product Bertrand Logit | realize_market.SyntheticMarket |
| Respecify a fitted antitrust model | respecify respecify,AntitrustFit-method respecify,StructuralFit-method |
| The legacy S4 result at a given step of a CounterfactualPath | result_at result_at,CounterfactualPath-method |
| Product revenue retention | getRetention setRetention |
| Show Method | show,Antitrust-method Show-Methods |
| Print a calibrated structural model | show,AntitrustFit-method |
| Merger Simulation With User-Supplied Demand Parameters | sim Sim-Functions |
| Simulate a counterfactual from a calibrated structural model | simulate simulate,AntitrustFit-method simulate,ANY-method simulate,CounterfactualPath-method simulate,StructuralFit-method |
| Generate deterministic synthetic-market replications | simulate_markets |
| Resolve a sequence of counterfactual steps for a fitted structural model | simulate_steps simulate_steps,AntitrustFit-method |
| Construct a fitted structural model from supplied parameters | specify |
| A shared structural fit contract | StructuralFit-class |
| Summary Methods | summary,AIDS-method summary,ANY-method summary,Auction2ndCap-method summary,Auction2ndLogit-method summary,Bertrand-method summary,Cournot-method summary-methods |
| Summarize a calibrated structural model | summary,AntitrustFit-method |
| List demand/conduct combinations supported by antitrust | supportedModels |
| Generate a model-consistent synthetic antitrust market | synthetic_market |
| A model-independent synthetic market design | is_SyntheticMarket SyntheticMarket |
| Recalibrate a fitted antitrust model | update.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 model | validate_counterfactual validate_counterfactual,AntitrustFit-method validate_counterfactual,StructuralFit-method |
| Vertical bargaining moved to the vertical package | vertical.barg |
