Description Objects from the Class Slots Methods The “matrixOrList” and “matrixOrVector” Classes Author(s) Examples

The “Antitrust” class is a building block used to create other classes in this package. As such, it is most likely to be useful for developers who wish to code their own calibration/simulation routines.

Objects can be created by calls of the form `new("Antitrust", ...)`

.

Let k denote the number of products produced by all firms.

`pricePre`

:A length k vector of simulated pre-merger prices.

`pricePost`

:A length k vector of simulated post-merger prices.

`ownerPre`

:A k x k matrix of pre-merger ownership shares.

`ownerPost`

:A k x k matrix of post-merger ownership shares.

`labels`

:A length k vector of labels.

Many of the methods described below contain a ‘preMerger’ argument. The ‘preMerger’ takes on a value of TRUE or FALSE, where TRUE invokes the method using the pre-merger values, while FALSE invokes the method using the post-merger ownership structure.

`calcPriceDelta`

`signature(object)`

Calculates the proportional change in product prices from a merger.

`ownerToMatrix`

`signature(object, preMerger = TRUE)`

Converts an ownership vector (or factor) to a k x k matrix of 1s and 0s.

`ownerToVec`

`signature(object, preMerger = TRUE)`

Converts a k x k ownership matrix to a length-k vector whose values identify an owner.

`show`

`signature(object)`

Displays the percentage change in prices due to the merger.

The “matrixOrList” and “matrixOrVector” classes are virtual classes used for validity checking in the ‘ownerPre’ and ‘ownerPost’ slots of “Antitrust” and the ‘slopes’ slot in “Bertrand”.

Charles Taragin [email protected]

1 2 | ```
showClass("Antitrust") # get a detailed description of the class
showMethods(classes="Antitrust") # show all methods defined for the class
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.