- prices
A length k vector product prices.
- quantities
An n x k matrix of product quantities. All quantities must either be positive, or if the product is
not produced by a plant, NA
- margins
An n x k matrix of product margins. All margins must be either be between 0 and 1, or NA.
- demand
A length k character vector equal to "linear" if a product's demand curve is assumed to be linear or "log"
if a product's demand curve is assumed to be log-linear.
- cost
A length k character vector equal to "linear" if a plant's marginal cost curve is assumed to be linear or
"constant" if a plant's marginal curve is assumed to be constant. Returns an error if a multi-plant firm with constant
marginal costs does not have capacity constraints.
- tariffPre
An n x k matrix where each element equals the current ad valorem tariff (expressed as a proportion of consumer price) imposed
on each product. Default is 0, which assumes no tariff.
- tariffPost
An n x k matrix where each element equals the new ad valorem tariff (expressed as a proportion of consumer price) imposed
on each product. Default is 0, which assumes no tariff.
- mcfunPre
a length n list of functions that calculate a plant's marginal cost under the current tariff structure.
If empty (the default), assumes quadratic costs.
- mcfunPost
a length n list of functions that calculate a plant's marginal cost under the new tariff structure.
If empty (the default), assumes quadratic costs.
- vcfunPre
a length n list of functions that calculate a plant's variable cost under the current tariff structure.
If empty (the default), assumes quadratic costs.
- vcfunPost
a length n list of functions that calculate a plant's variable cost under the new tariff structure.
If empty (the default), assumes quadratic costs.
- capacitiesPre
A length n numeric vector of plant capacities under the current tariff regime. Default is Inf.
- capacitiesPost
A length n numeric vector of plant capacities under the new tariff regime. Default is Inf.
- productsPre
An n x k matrix that equals TRUE if under the current tariff regime, a plant produces a product. Default is TRUE if 'quantities' is not NA.
- productsPost
An n x k matrix that equals TRUE if under the new tariff regime, a plant produces a product. Default equals 'productsPre'.
- owner
EITHER a vector of length n whose values indicate which plants are commonly owned OR an n x n matrix of ownership shares.
- mktElast
A length k vector of product elasticities. Default is a length k vector of NAs
- quantityStart
A length k vector of quantities used as the initial guess in the nonlinear equation solver. Default is 'quantities'.
- control.slopes
A list of optim
control parameters passed to the calibration routine optimizer
(typically the calcSlopes
method).
- control.equ
A list of BBsolve
control parameters passed to the non-linear equation solver
(typically the calcPrices
method).
- labels
A k-length vector of labels.
- ...
Additional options to feed to the BBsolve
optimizer used to solve for equilibrium quantities.