Scale gross export and import in all regions to make them equal at the world level.
GROSS_TRADE_ADJUST(
.DF,
.MIN_TRADE_PROD_RATIO = 0.01,
.Reg_VAR = "area_code",
.GROUP_VAR = c("item_code", "year")
)
An input dataframe with an element col including Import and Export
Trade will be removed if world total export or import over production is smaller than .MIN_TRADE_PROD_RATIO, 0.01 default value
Region variable name; default is area_code
Group variable; default is item_code and year
The same dataframe with balanced world export and import.