TariffMonComRUM-methods {trade} | R Documentation |
Additional methods for TariffMonComLogit, TariffMonComCES Classes
Description
calcSlopes
, Prices
, Margins
methods for the TariffMonComLogit
and TariffMonComCES
classes
Usage
## S4 method for signature 'TariffMonComLogit'
calcSlopes(object)
## S4 method for signature 'TariffMonComCES'
calcSlopes(object)
## S4 method for signature 'TariffMonComLogit'
calcMargins(object, preMerger = TRUE, level = FALSE)
## S4 method for signature 'TariffMonComCES'
calcMargins(object, preMerger = TRUE, level = FALSE)
## S4 method for signature 'TariffMonComLogit'
calcPrices(object, preMerger = TRUE, ...)
## S4 method for signature 'TariffMonComCES'
calcPrices(object, preMerger = TRUE, ...)
Arguments
object |
an instance of class |
preMerger |
when TRUE, computes result under the existing tariff regime. When FALSE, calculates tariffs under the new tariff regime. Default is TRUE. |
level |
when TRUE, computes margins in dollars. When FALSE, calculates margins as a proportion of prices. Default is FALSE. |
... |
harmlessly pass the arguments used in other calcPrices methods to
methods for |
Value
calcSlopes
return a TariffMonComLogit
or TariffMonComCES
object containing estimated slopes. CalcQuantities
returns
a matrix of equilbrium quantities under either the current or new tariff.
[Package trade version 0.8.1 Index]