Learn R Programming

yotover (version 0.3.5)

yotov_model_summary3: Regional Trade Agreements Effects Reporting Style

Description

Computes clustered standard errors, tests on coefficients with clustered standard errors and returns total RTAs effect with its associated standard error.

Usage

yotov_model_summary3(
  formula,
  data,
  method = "lm",
  pair = "pair_id",
  pair2 = "pair_id_2",
  etfe = "exp_year",
  itfe = "imp_year",
  dist = "log_dist",
  intr = "log_dist_intra",
  brdr = "intl_brdr"
)

Arguments

formula

A formula for the model

data

A tibble or data.frame

method

Regression method, which can be "lm" (default) or "glm"

pair

Inter-national fixed effects column (defaults to "pair_id")

pair2

Intra-national fixed effects column (defaults to "pair_id_2")

etfe

Exporter time fixed effects column (defaults to "exp_year")

itfe

Importer time fixed effects column (defaults to "imp_year")

dist

Distance column (defaults to "log_dist")

intr

Intra-national distance column (defaults to "log_dist_intra")

brdr

Inter-national borders column (defaults to "intl_brdr")