TariffMonComRUM-methods: Additional methods for TariffMonComLogit, TariffMonComCES...

TariffMonComRUM-methodsR 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 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.

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.


luciu5/trade documentation built on Aug. 26, 2022, 5:52 a.m.