Package: trade 0.8.3

trade: Tools for Trade Practitioners

A collection of tools for trade practitioners, including the ability to calibrate different consumer demand systems and simulate the effects of tariffs and quotas under different competitive regimes. These tools are derived from Anderson et al. (2001) <doi:10.1016/S0047-2727(00)00085-2> and Froeb et al. (2003) <doi:10.1016/S0304-4076(02)00166-5>.

Authors:Charles Taragin [aut, cre]

trade_0.8.3.tar.gz
trade_0.8.3.zip(r-4.7)trade_0.8.3.zip(r-4.6)trade_0.8.3.zip(r-4.5)
trade_0.8.3.tgz(r-4.6-any)trade_0.8.3.tgz(r-4.5-any)
trade_0.8.3.tar.gz(r-4.7-any)trade_0.8.3.tar.gz(r-4.6-any)
trade_0.8.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
trade/json (API)

# Install 'trade' in R:
install.packages('trade', repos = c('https://luciu5.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/luciu5/trade/issues

On CRAN:

Conda:

3.48 score 1 stars 1 packages 10 scripts 545 downloads 16 exports 6 dependencies

Last updated from:c75863e8f9. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR138
source / vignettesOK228
linux-release-x86_64ERROR132
macos-release-arm64ERROR127
macos-oldrel-arm64ERROR149
windows-develERROR109
windows-releaseERROR91
windows-oldrelERROR82
wasm-releaseOK108

Exports:auction2nd_tariffbargaining_tariffbertrand_quotabertrand_tariffcalcMarginscalcPricescalcProducerSurpluscalcQuantitiescalcSlopescournot_tariffHypoMonTestinitializemonopolistic_competition_tariffsimsummarytrade_shiny

Dependencies:antitrustBBnleqslvnumDerivquadprogSQUAREM

trade Reference Manual

Rendered fromReference.Rmdusingknitr::rmarkdownon May 19 2026.

Last update: 2022-08-23
Started: 2019-07-25

Readme and manuals

Help Manual

Help pageTopics
Tariff Simulation With A Second Score Procurement Auction Gameauction2nd_tariff
Tariff Simulation With A Nash Bargaining Gamebargaining_tariff
quota Simulation With A Bertrand Pricing Gamebertrand_quota
Tariff Simulation With A Bertrand Pricing Gamebertrand_tariff
Tariff Simulation With A Cournot Quantity Setting Gamecournot_tariff
Methods For Implementing The Hypothetical Monopolist TestdefineMarketTools-methods HypoMonTest HypoMonTest,TariffBertrand-method HypoMonTest,TariffCournot-method
Initialize Methodsinitialize,QuotaBertrand-method initialize,TariffBertrand-method initialize,TariffCournot-method initialize-methods
Tariff Simulation With A Monopolistic Competition Pricing Gamemonopolistic_competition_tariff
Methods To Calculate Producer SurpluscalcProducerSurplus,TariffBertrand-method calcProducerSurplus,TariffCournot-method ps-methods
S4 classes to model quotasQuota-classes QuotaBertrand-class QuotaCournot-class QuotaLogit-class
Tariff Simulation With User-Supplied Demand Parameterssim Sim-Functions
Summary Methodssummary,QuotaBertrand-method summary,TariffBertrand-method summary,TariffCournot-method summary-methods
S4 classes to model tariffsTariff-classes Tariff2ndLogit-class TariffAIDS-class TariffBargainingLogit-class TariffBertrand-class TariffCES-class TariffCournot-class TariffLogit-class TariffMonComLogit-class
Additional methods for TariffCournot ClasscalcQuantities,TariffCournot-method calcSlopes,TariffCournot-method TariffCournot-methods
Additional methods for TariffMonComLogit, TariffMonComCES ClassescalcMargins,TariffMonComCES-method calcMargins,TariffMonComLogit-method calcPrices,TariffMonComCES-method calcPrices,TariffMonComLogit-method calcSlopes,TariffMonComCES-method calcSlopes,TariffMonComLogit-method TariffMonComRUM-methods