summary-methods: Summary Methods

summary-methodsR Documentation

Summary Methods

Description

Summary methods for the TariffBertrand, QuotaBertrand, and TariffCournot classes

Usage

## S4 method for signature 'TariffBertrand'
summary(
  object,
  revenue = FALSE,
  levels = FALSE,
  parameters = FALSE,
  market = FALSE,
  insideOnly = TRUE,
  digits = 2
)

## S4 method for signature 'QuotaBertrand'
summary(
  object,
  revenue = FALSE,
  levels = FALSE,
  parameters = FALSE,
  market = FALSE,
  insideOnly = TRUE,
  digits = 2
)

## S4 method for signature 'TariffCournot'
summary(
  object,
  market = FALSE,
  revenue = FALSE,
  levels = FALSE,
  parameters = FALSE,
  digits = 2
)

Arguments

object

an instance of class TariffBertrand, QuotaBertrand, or TariffCournot

revenue

When TRUE, returns revenues, when FALSE returns quantitities. Default is FALSE.

levels

When TRUE returns changes in levels rather than percents and quantities rather than shares, when FALSE, returns changes as a parcent and shares rather than quantities. Default is FALSE.

parameters

When TRUE, displays demand and cost parameters. Default is FALSE.

market

When TRUE, displays aggregate information about the effect of a tariff. When FALSE displays product-specific (or in the case of Cournot, plant-specific) effects. Default is FALSE

insideOnly

When TRUE, rescales shares on inside goods to sum to 1. Default is FALSE.

digits

Number of digits to report. Default is 2.

Value

Prints either market or product/plant-level summary and invisibly returns a data frame containing the same information.


trade documentation built on Aug. 24, 2022, 9:06 a.m.