Description Usage Arguments Details
The data frame outcome of this function will be use by replacebypartnerquantity() to decide which of the reporter or partner flow to favor
1 2 | choosereporterorpartner(dtf, periodbegin = 2009, periodend = 2013,
sdratiolimit = 0.8, verbose = getOption("tradeflows.verbose", TRUE))
|
dtf |
data frame |
periodbegin |
change this to global parameter |
periodend |
change this to global parameter |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.