choosereporterorpartner: Compare reporter and partner flow

Description Usage Arguments Details

View source: R/clean.R

Description

The data frame outcome of this function will be use by replacebypartnerquantity() to decide which of the reporter or partner flow to favor

Usage

1
2
choosereporterorpartner(dtf, periodbegin = 2009, periodend = 2013,
  sdratiolimit = 0.8, verbose = getOption("tradeflows.verbose", TRUE))

Arguments

dtf

data frame

periodbegin

change this to global parameter

periodend

change this to global parameter

Details

NA values should not be present in prices. If an NA value is present in one year, it should be probagated to all other years. That means do not use na.rm in the calculation of the standard deviation of prices.

Because of missing values in more recent years, the presence of missing data towards the end can be dealt with by choosing periodend 2 or 3 years before the last year available.


EuropeanForestInstitute/tradeflows documentation built on Oct. 7, 2019, 10:57 a.m.