runModel: Run Standard OEC Model

Description Usage Arguments Details

View source: R/model.R

Description

runModel runs the entire model program and returns all the results wrapped in a single object. It also saves a copy of the model run to the package data folder.

Usage

1
runModel(data_tag, product_code_rev, product_code_digit, input_year, ab_flag)

Arguments

data_tag

Dataset to use (can be "baci" or "oec").

product_code_rev

HS coding scheme revision year (can be "1992", "1996", "2002", or "2007").

product_code_digit

Number of digits in HS coding scheme (can be "4" or "6").

input_year

Year for which to run model (e.g. 2001, 2006).

ab_flag

= TRUE (include AB data) or FALSE

Details

Note that for BACI data, the input_year is ignored when loading exports, but applied when determining product names from codes.


thomnific/ecxplor documentation built on Sept. 29, 2020, 3:37 p.m.