Learn R Programming

antitrust (version 0.9)

other-methods: Other Useful Bertrand Methods

Description

Methods defined for the Bertrand class and its child classes.

Usage

## S3 method for class 'ANY':
calcShares(object,preMerger=TRUE,revenue=FALSE)
## S3 method for class 'ANY':
calcQuantities(object,preMerger=TRUE)
## S3 method for class 'ANY':
calcPrices(object,preMerger=TRUE,subset,...)
## S3 method for class 'Antitrust':
calcPriceDelta(object)
## S3 method for class 'AIDS':
calcPriceDelta(object,isMax=FALSE,subset,...)
## S3 method for class 'Bertrand':
calcProducerSurplus(object,preMerger=TRUE)
## S3 method for class 'ANY':
calcMargins(object,preMerger=TRUE)
## S3 method for class 'Bertrand':
calcMC(object,preMerger=TRUE)
## S3 method for class 'ANY':
calcSlopes(object,preMerger=TRUE)
## S3 method for class 'Bertrand':
hhi(object,preMerger=TRUE,revenue=FALSE)
## S3 method for class 'Antitrust':
ownerToMatrix(object,preMerger=TRUE)
## S3 method for class 'Antitrust':
ownerToVec(object,preMerger=TRUE)
## S3 method for class 'Bertrand':
plot(x,scale=.1)
## S3 method for class 'Bertrand':
summary(object,revenue=TRUE,shares=TRUE,parameters=FALSE,digits=2,...)

Arguments

Let k denote the number of products
object
An instance of one of the classes listed above.
x
Used only in plot method. Should always be set equal to object
preMerger
If TRUE, returns pre-merger outcome. If FALSE, returns post-merger outcome. Default is TRUE.
isMax
If TRUE, uses numerical derivatives to determine if equilibrium price vector is a local maximum. Default is FALSE.
revenue
If TRUE, returns revenues. If FALSE, returns quantities. Default is TRUE
subset
A vector of length k where each element equals TRUE if the product indexed by that element should be included in the post-merger simulation and FALSE if it should be excluded.Default is a length k vector of TRUE.
shares
If TRUE, returns shares. If FALSE, returns levels. Default is TRUE
parameters
If TRUE, reports demand and cost parameters. Default is FALSE
digits
The number of significant digits to round printed results. Default is 2
scale
The proportion below marginal cost and above equilbrium price that should be plotted. Default is .1
...
Arguments to be passed to non-linear solver, OR for summary to CV.