Clarify pending questions relevant for documentation of the methodology
I
as observation status flag? Aren’t monetary values supposed to remain unchanged?The I
ObservationStatus flags are added to observations that are considered as “unit value outliers”. An observation’s unit value is calculated as the ratio between the monetary value and the quantity value / qty
. The calculated ratio can be extreme due to either the nominator or the denominator. Therefore, the flag is added to both measures (monetary value and quantity).
In the mirror step, monetary values are modified to account for differences between higher CIF prices for imports compared to FOB prices for exports.
E
as observation status flag for records added in the mirror trade step?“Estimated values” refers to observations obtained through an estimation methodology (e.g. to produce back-casts) or based on the use of a limited amount of data or ad hoc sampling and through additional calculations (e.g. to produce a value at an early stage of the production stage while not all data are available). It may also be used in case of experimental data (e.g. in the context of a pilot ahead of a full scale production process) or in case of data of (anticipated/assessed) low quality. If needed, additional (uncoded) information can be provided through (free text) “comments” at the observation level or at a higher level.
The “Mapping from old to proposed flags in FAOSTAT dissemination system” table mentions: Estimated data using trading partners database (mirror data) R -> E
M
as observation status flag for the quantity measure of FCL items that are categorized as $ value only
? What is the appropriate method flag? If those quantitiesare not published, are M
flags required for intenal use?M
Missing value (data cannot exist, not applicable)X
as observation status flag and h
as method flag for all HS input data (all information is raw data published by Eurostat and UNSD)X
Figure from international organizationsh
Collected using automatic data harvestingThe document may need to be revised, the table mentions for <blank>
: “Observation reported by official statistical government agencies, including Eurostat.”
156
is confused with the partner country code for Belgium 56
.Issues in kind should already be addressed in the database. Otherwise, it is impossible to join data with mapping tables before exporting to analytical and statistical tools.
This statement is based on a test where four sessions were started and in each of them the trade module has been executed with identical parameter settings (year: 2009, out_coef: 1.5). The extraction from the log file below shows that between 77.6% and 78% of HS codes in Eurostat do not get converted to FCL. In case of Comtrade the conversion however is stable at 31.5%.
The messages generated at the end of the four module runs show that each additional run appends less values to the dataset. The first run terminates at 17:17:35 and appends 7589 values (less than 0.6% of the dataset), the last run terminates at 17:22:02 and appends 3912 values (less than 0.3% of the dataset). The total dataset for one year has more than 1.4 mio observations.
[2016-07-25 15:54:00] [20610] Convert Eurostat HS to FCL
[2016-07-25 15:54:25] [20626] Convert Eurostat HS to FCL
[2016-07-25 15:54:31] [20633] Convert Eurostat HS to FCL
[2016-07-25 15:54:46] [20697] Convert Eurostat HS to FCL
[2016-07-25 16:13:48] Proportion of HS-codes not converted in FCL: 77.6%
[2016-07-25 16:13:52] Proportion of tradeflows with nonmapped HS-codes: 88.1%
[2016-07-25 16:13:52] Share of value of tradeflows with nonmapped HS-codes in total value: 94.5%
[2016-07-25 16:13:55] [20610] Converting from comtrade to FAO codes
[2016-07-25 16:14:40] Proportion of HS-codes not converted in FCL: 77.9%
[2016-07-25 16:14:43] Proportion of HS-codes not converted in FCL: 77.8%
[2016-07-25 16:14:45] Proportion of tradeflows with nonmapped HS-codes: 88.2%
[2016-07-25 16:14:45] Share of value of tradeflows with nonmapped HS-codes in total value: 94.4%
[2016-07-25 16:14:48] [20633] Converting from comtrade to FAO codes
[2016-07-25 16:14:48] Proportion of tradeflows with nonmapped HS-codes: 88.2%
[2016-07-25 16:14:48] Share of value of tradeflows with nonmapped HS-codes in total value: 94.4%
[2016-07-25 16:14:48] Proportion of HS-codes not converted in FCL: 78%
[2016-07-25 16:14:51] [20626] Converting from comtrade to FAO codes
[2016-07-25 16:14:54] Proportion of tradeflows with nonmapped HS-codes: 88.1%
[2016-07-25 16:14:54] Share of value of tradeflows with nonmapped HS-codes in total value: 94.4%
[2016-07-25 16:15:06] [20697] Converting from comtrade to FAO codes
[2016-07-25 16:26:31] Proportion of HS-codes not converted in FCL: 31.5%
[2016-07-25 16:26:33] Proportion of tradeflows with nonmapped HS-codes: 46.3%
[2016-07-25 16:26:33] Share of value of tradeflows with nonmapped HS-codes in total value: 30.8%
...
...
Proportion of HS-codes not converted in FCL: 31.5%
Proportion of HS-codes not converted in FCL: 31.5%
[2016-07-25 16:28:52] Proportion of tradeflows with nonmapped HS-codes: 46.3%
[2016-07-25 16:28:52] Share of value of tradeflows with nonmapped HS-codes in total value: 30.8%
[2016-07-25 16:28:54] Proportion of tradeflows with nonmapped HS-codes: 46.3%
[2016-07-25 16:28:54] Share of value of tradeflows with nonmapped HS-codes in total value: 30.8%
[2016-07-25 16:28:55] Proportion of HS-codes not converted in FCL: 31.5%
[2016-07-25 16:28:57] Proportion of tradeflows with nonmapped HS-codes: 46.3%
[2016-07-25 16:28:57] Share of value of tradeflows with nonmapped HS-codes in total value: 30.8%
Regarding the Eurostat vs. National, it’s due to differences in community vs. national concept. For your reference, see para. 10.9 of IMTS 2010 Compilers Manual below:
10.9. Community versus national concept. In some instances, the EU concept diverges from the international recommendations. However, many member States simultaneously compile their data according to the so-called national concept which is usually more in line with the international recommendations. The principal differences between the EU concept and national concepts entail: (a) breakdown by partner country: for arrivals, certain member States record the country of origin as the partner country, whereas the member State of consignment appears in the EU statistics relating to the same movements; (b) treatment of goods in transit: some member States do not record goods, which they consider to be “in transit” in their national figures. This involves, first, imports from non-member countries that are cleared in these member States before being dispatched to other member States and, second, goods from other member States that are immediately re-exported to non-member countries. These flows are included in the EU statistics under intra- or extra-EU trade, as appropriate. The phenomenon is sometimes referred to as the “Rotterdam effect”;and (c) general trade: some member States compile extra-EU trade statistics according to the general trade system, while the EU concept is based on special trade (relax definition).
see out.coef
parameter in complete_tf_cpc/metadata.xml
or github search: “out.coef”
# Coefficient for outlier detection
# See coef argument in ?boxplot.stats
not addressed in documentation
not addressed in documentation
not clearly described in documentation: done or in progress? ask to provide draft code if exists
A number of comtrade countries are assigned to country 252 (“unknown”).
The Elibrary has special conditions for our Member States’ governmental institutions. See http://www.e-unwto.org/subscribe.
Other institutions can purchase admission to the commercial interface of the Elibrary by yearly subscription. The commercial level of the Elibrary does not, however, include restricted or privileged information. See http://www.e-unwto.org/pb-assets/unwto/Rules_MS_en.pdf.
At present, the module only uses information from the current period
foodConsumptionPopData.3[, calPerPersonPerDay := (totalFood * valueCal * calUnit) / daysperyear / (pop * popUnit)]
where
totalFood
is the amount of food available (in tons, from food module)valueCal
is the caloric content (for each commodity)calUnit
is 10000daysperyear
is 365pop
is the total population (in thousand persons, for each country)popUnit
is 1000foodTouristConsumption.11[, netFood := calNetCountry/(valueCal * calUnit)]
where
calNetCountry
is the net tourist calories per countryvalueCal
is the caloric content (for each commodity)calUnit
is 10000In our approach, the person comes from country A to country B eats the same food types as people in country B but eats the same calorie amounts as in their home country. In case we don’t have totalCalDay for the country A, we will assume the same calories amount in country B. See https://github.com/SWS-Methodology/faoswsTourist/blob/master/modules/impute_tourist/main.R#L228.