Learn R Programming

trade (version 0.5.4)

TariffMonComRUM-methods: Additional methods for TariffMonComLogit, TariffMonComCES Classes

Description

Producer Surplus 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)

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

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

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

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.

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.