Learn R Programming

trade (version 0.8.1)

TariffMonComRUM-methods: Additional methods for TariffMonComLogit, TariffMonComCES Classes

Description

calcSlopes, Prices, Margins methods for the TariffMonComLogit and TariffMonComCES classes

Usage

# S4 method for TariffMonComLogit
calcSlopes(object)

# S4 method for TariffMonComCES calcSlopes(object)

# S4 method for TariffMonComLogit calcMargins(object, preMerger = TRUE, level = FALSE)

# S4 method for TariffMonComCES calcMargins(object, preMerger = TRUE, level = FALSE)

# S4 method for TariffMonComLogit calcPrices(object, preMerger = TRUE, ...)

# S4 method for TariffMonComCES calcPrices(object, preMerger = TRUE, ...)

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.

Arguments

object

an instance of class TariffMonComLogit or class TariffMonComCES

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 TariffMonComLogit and TariffMonComCES.